fix: cache unknown hashes in sanejs

pull/86/head
Raphaël Vinot 2020-09-01 00:51:44 +02:00
parent 56f98651a6
commit aee62136ab
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ class SaneJavaScript():
with cached_path.open() as f:
to_return[h] = json.load(f)
with sanejs_unknowns.open('w') as f:
f.writelines(f'{h}\n' for h in unknown_hashes)
return to_return