Commit 64c73627 authored by Florian Pritz's avatar Florian Pritz
Browse files

Add all paths including sig files to db


Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent 8c62399f
......@@ -70,9 +70,8 @@ class ArchiveUploader:
res = self.ia.upload(identifier, files=files, metadata=metadata)
if all([x.status_code == 200 for x in res]):
for f in files:
if not f.endswith('.sig'):
filename = os.path.basename(f)
self.db.add_file(filename)
filename = os.path.basename(f)
self.db.add_file(filename)
else:
ok = len([x for x in res if x.status_code == 200])
nok = len([x for x in res if x.status_code != 200])
......
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