diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-11-25 12:10:59 +0100 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2016-11-25 12:10:59 +0100 |
commit | afc49316036a8e8c5a71e43c409082f952119585 (patch) | |
tree | f762891375d2263bb0cca7086798852f10c3ee86 | |
parent | b55de337ecd0900af437fafe470c1faf99c59b07 (diff) |
Don't overwrite statList at the end
-rwxr-xr-x | esc-reporting/qa-tools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/esc-reporting/qa-tools.py b/esc-reporting/qa-tools.py index 1217def..ba4d8a8 100755 --- a/esc-reporting/qa-tools.py +++ b/esc-reporting/qa-tools.py @@ -175,6 +175,8 @@ def analyze_bugzilla(statList, bugzillaData, cfg): statNewDate = statList['stat']['newest'] statOldDate = statList['stat']['oldest'] + statList['addDate'] = datetime.date.today().strftime('%Y-%m-%d') + for key in bugzillaData['bugs']: row = bugzillaData['bugs'][key] if not row['summary'].startswith('[META]'): @@ -586,8 +588,6 @@ if __name__ == '__main__': statList = util_create_statList() analyze_bugzilla(statList, bugzillaData, cfg) - statList = util_load_file(cfg['homedir'] + 'stats.json') - if len(sys.argv) > 1: if sys.argv[1] == 'report': QA_Report(statList) |