summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-11-25 12:10:59 +0100
committerXisco Fauli <anistenis@gmail.com>2016-11-25 12:10:59 +0100
commitafc49316036a8e8c5a71e43c409082f952119585 (patch)
treef762891375d2263bb0cca7086798852f10c3ee86
parentb55de337ecd0900af437fafe470c1faf99c59b07 (diff)
Don't overwrite statList at the end
-rwxr-xr-xesc-reporting/qa-tools.py4
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)