Skip to content
Snippets Groups Projects
Commit fd7d3780 authored by Megan Henning's avatar Megan Henning
Browse files

Only return acqs with files

parent d73d430b
No related branches found
No related tags found
No related merge requests found
......@@ -1208,7 +1208,7 @@ def upgrade_to_36():
"""
scitran/core issue #931 - mimetype not set on packfile uploads
"""
cursor = config.db.acquisitions.find({'files.mimetype': None})
cursor = config.db.acquisitions.find({'files': { '$gt': [] }, 'files.mimetype': None})
process_cursor(cursor, upgrade_to_36_closure)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment