Bimba.git

commit bcbad919b078aecc1849bc285d50b545e083319c

Author: Adam Pioterek <adam.pioterek@protonmail.ch>

converter tidying up (unlinks old .gz’s)

 converter/converter.py | 4 ++++


diff --git a/converter/converter.py b/converter/converter.py
index 5fa8c383cbe6def4c9d6f131f2a969637ec5fc00..42b44aa5928ee3e632d18f73cd7bfa37e3406f25 100755
--- a/converter/converter.py
+++ b/converter/converter.py
@@ -24,6 +24,8 @@     def __call__(self):
         self.__download()
         self.__tidy_up()
 
+        print(self.__metadata)
+
         with open('metadata.yml', 'w') as metadata_file:
             yaml.dump(self.__metadata, metadata_file, default_flow_style=False)
 
@@ -131,6 +133,8 @@         new_metadata = []
         for item in self.__metadata:
             if item['id'] not in to_remove:
                 new_metadata.append(item)
+            else:
+                Path('{}.db.gz'.format(item['id'])).unlink()
 
         self.__metadata = new_metadata