From 46d0e963219af5ea1ace3a3c3639902ab723297c Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 5 Jan 2018 20:39:38 -0600 Subject: [PATCH] Stop setting execution details when multiple batches executed that's now the handler's job --- tailbone/views/batch/core.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tailbone/views/batch/core.py b/tailbone/views/batch/core.py index c06937fa..318bbea0 100644 --- a/tailbone/views/batch/core.py +++ b/tailbone/views/batch/core.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2017 Lance Edgar +# Copyright © 2010-2018 Lance Edgar # # This file is part of Rattail. # @@ -887,10 +887,6 @@ class BatchMasterView(MasterView): # If no error, check result flag (false means user canceled). else: if result: - now = datetime.datetime.utcnow() - for batch in batches: - batch.executed = now - batch.executed_by = user session.commit() # TODO: this doesn't always work...? self.request.session.flash("{} {} were executed".format(