Refactor combined.json

This commit is contained in:
relikd
2020-09-07 17:11:34 +02:00
parent f2b9e87f01
commit 5f1f6e4124
7 changed files with 158 additions and 129 deletions

View File

@@ -48,16 +48,16 @@ def del_id(bundle_ids):
def combine_and_update(bundle_ids, where=None):
new_ids = bundle_download.process(bundle_ids)
affected = bundle_combine.process(bundle_ids, where=where)
if len(affected) == 0:
if len(affected) > 0:
html_bundle.process(affected)
else:
print('no bundle affected by tracker, not generating bundle html')
return
new_ids = html_bundle.process(affected)
if len(new_ids) == 0:
if len(new_ids) > 0:
rebuild_index()
else:
print('no new bundle, not rebuilding index')
return
bundle_download.process(new_ids)
rebuild_index()
def import_update():