From 590d6b95245229c0f5b4c3b9c0bc7d92efca4a43 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Nov 2020 18:00:36 +0000 Subject: [PATCH] Fix history script --- app/scripts/appListsHistory/script.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/scripts/appListsHistory/script.py b/app/scripts/appListsHistory/script.py index aaeaa81..7d45796 100644 --- a/app/scripts/appListsHistory/script.py +++ b/app/scripts/appListsHistory/script.py @@ -95,17 +95,17 @@ def make_count_summary(): infos = j.get(app, {}) if not infos or infos.get("state") not in ["working", "official"]: - level = -1 + level = 0 else: - level = infos.get("level", -1) + level = infos.get("level", 0) try: level = int(level) except: - level = -1 + level = 0 history_per_app[app].append({ "date": d_label, - "level": infos.get("level", -1) + "level": level }) json.dump(history, open('count_history.json', 'w'))