Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions legi/tar2sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,13 @@ def count_one(k):
'other_cid': text_cid,
'other_dossier': dossier,
'other_mtime': mtime,
})
count_one('insert into duplicate_files')
}, replace=True)
count_one('upsert into duplicate_files')
elif prev_mtime == mtime:
skipped += 1
continue

for block in entry.get_blocks():
xml.feed(block)
xml.feed(b''.join(entry.get_blocks()))
root = xml.close()
tag = root.tag
meta = root.find('META')
Expand Down Expand Up @@ -381,8 +380,8 @@ def count_one(k):
'other_cid': prev_cid,
'other_dossier': prev_dossier,
'other_mtime': prev_mtime,
})
count_one('insert into duplicate_files')
}, replace=True)
count_one('upsert into duplicate_files')
continue

attrs['dossier'] = dossier
Expand Down