Revision 54593
Added by Sandro La Bruzzo almost 6 years ago
s3_migration.py | ||
---|---|---|
24 | 24 |
for item in source_collection.find(no_cursor_timeout=True): |
25 | 25 |
fs_path = item['fsPath'] |
26 | 26 |
objectId = item['id'] |
27 |
dest_item = destination_collection.find_one(objectId)
|
|
27 |
dest_item = destination_collection.find_one({'id':objectId})
|
|
28 | 28 |
if dest_item is None: |
29 | 29 |
if os.path.isfile(fs_path): |
30 | 30 |
i += 1 |
Also available in: Unified diff
fixed check on mongo