fix: Make sure all the archived UUIDs are removed

pull/251/head
Raphaël Vinot 2021-08-23 15:29:21 +02:00
parent 67e6571145
commit 5c9b88a3ca
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ class Archiver(AbstractManager):
with (month / 'index').open('r') as _f:
archived_uuids = {uuid: str(month / dirname) for uuid, dirname in csv.reader(_f)}
lookyloo.redis.hset('lookup_dirs_archived', mapping=archived_uuids)
lookyloo.redis.hdel('lookup_dirs', *archived_uuids.keys())
def main():