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):
return entry_metadata
try:
# read all calc objects first to avoid missing curser errors
yield [
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:
upload_files.close()
......
Markdown is supported
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