Tweak how we connect a user to a batch, when refreshing.

This commit is contained in:
Lance Edgar 2016-02-09 20:47:12 -06:00
parent f07518f939
commit 4713e25ffe

View file

@ -602,7 +602,7 @@ class BatchCrud(BaseCrud):
if cognizer is not None: if cognizer is not None:
batch.cognized_by = cognizer batch.cognized_by = cognizer
else: else:
batch.cognized_by = self.request.user batch.cognized_by = session.merge(self.request.user)
def refresh_thread(self, batch_uuid, progress=None, cognizer_uuid=None, success_url=None): def refresh_thread(self, batch_uuid, progress=None, cognizer_uuid=None, success_url=None):
""" """