qa/bugzillaChecker.py | 8 +++++++- qa/common.py | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-)
New commits: commit 2ed0c279c652880614dfa98b4c9cb8703d0c8323 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Aug 7 14:03:00 2019 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Aug 7 14:40:09 2019 +0200 QA: Save config info in file diff --git a/qa/bugzillaChecker.py b/qa/bugzillaChecker.py index df9e5a0..9909b9a 100755 --- a/qa/bugzillaChecker.py +++ b/qa/bugzillaChecker.py @@ -426,13 +426,15 @@ def analyze_bugzilla_checkers(statList, bugzillaData, cfg): isEasyHack = True print("{:<3} | {:<58} | {}".format( str(idx + 1), common.urlShowBug + str(lBugs[idx]), 'easyHack: ' + str(isEasyHack)), file=fp) + cfg['configQA']['ignore']['newContributors'].append(statList['people'][k]['email']) - if statList['people'][k]['oldest'] >= cfg['memberPeriod'] and statList['people'][k]['newest'] >= cfg['reportPeriod'] and \ + if statList['people'][k]['oldest'] >= cfg['memberPeriod'] and \ len(statList['people'][k]['bugs']) >= memberBugs and statList['people'][k]['email'] not in cfg['configQA']['ignore']['members']: print('\n=== New MEMBER: ' + statList['people'][k]['name'] + " (" + statList['people'][k]['email'] + ") ===", file=fp) print('\tOldest: ' + statList['people'][k]['oldest'].strftime("%Y-%m-%d"), file=fp) print('\tNewest: ' + statList['people'][k]['newest'].strftime("%Y-%m-%d"), file=fp) print('\tTotal: ' + str(len(statList['people'][k]['bugs'])), file=fp) + cfg['configQA']['ignore']['members'].append(statList['people'][k]['email']) if statList['people'][k]['newest'] < cfg['oldUserPeriod'] and statList['people'][k]['newest'] >= cfg['oldUserPeriod2'] and \ len(statList['people'][k]['bugs']) >= oldUserBugs and statList['people'][k]['email'] not in cfg['configQA']['ignore']['oldContributors']: @@ -440,11 +442,15 @@ def analyze_bugzilla_checkers(statList, bugzillaData, cfg): print('\tOldest: ' + statList['people'][k]['oldest'].strftime("%Y-%m-%d"), file=fp) print('\tNewest: ' + statList['people'][k]['newest'].strftime("%Y-%m-%d"), file=fp) print('\tTotal: ' + str(len(statList['people'][k]['bugs'])), file=fp) + cfg['configQA']['ignore']['oldContributors'].append(statList['people'][k]['email']) statList['people'][k]['oldest'] = statList['people'][k]['oldest'].strftime("%Y-%m-%d") statList['people'][k]['newest'] = statList['people'][k]['newest'].strftime("%Y-%m-%d") fp.close() + dumpResult = {} + dumpResult['configQA'] = cfg['configQA'] + common.util_dump_config(dumpResult) def runCfg(): cfg = common.get_config() diff --git a/qa/common.py b/qa/common.py index 3b94860..51a9b47 100755 --- a/qa/common.py +++ b/qa/common.py @@ -60,8 +60,9 @@ def util_load_file(fileName): pass return rawData -def util_dump_file(fileName, rawList): +def util_dump_config(rawList): try: + fileName = configDir + 'configQA.json' fp = open(fileName, 'w', encoding='utf-8') json.dump(rawList, fp, ensure_ascii=False, indent=4, sort_keys=True) fp.close() _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits