Commit 06c9239a authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Prevent cursor timeouts on re-indexing uploads.

parent 70d29dc8
...@@ -1203,9 +1203,10 @@ class Upload(Proc): ...@@ -1203,9 +1203,10 @@ class Upload(Proc):
return entry_metadata return entry_metadata
try: try:
# read all calc objects first to avoid missing curser errors
yield [ yield [
get_metadata(calc) get_metadata(calc)
for calc in Calc.objects(upload_id=self.upload_id)] for calc in list(Calc.objects(upload_id=self.upload_id))]
finally: finally:
upload_files.close() upload_files.close()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment