Ejegg has uploaded a new change for review. https://gerrit.wikimedia.org/r/322210
Change subject: Fix spacing ...................................................................... Fix spacing Change-Id: I00560d6f5632deb03324ed13ff0936f50a8483aa --- M FundraiserStatisticsGen/fundstatgen.py M database/db.py M live_analysis/dump_tests.py 3 files changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/tools refs/changes/10/322210/1 diff --git a/FundraiserStatisticsGen/fundstatgen.py b/FundraiserStatisticsGen/fundstatgen.py index acb5ae1..06528cf 100644 --- a/FundraiserStatisticsGen/fundstatgen.py +++ b/FundraiserStatisticsGen/fundstatgen.py @@ -269,6 +269,7 @@ json.dump(mapstats, f) f.close() + if __name__ == "__main__": logging.getLogger().setLevel(logging.DEBUG) diff --git a/database/db.py b/database/db.py index ac00ab3..2390f52 100644 --- a/database/db.py +++ b/database/db.py @@ -201,5 +201,6 @@ signal(SIGTERM, SIG_DFL) os.kill(os.getpid(), signum) + atexit.register(close_all) signal(SIGTERM, handle_sigterm) diff --git a/live_analysis/dump_tests.py b/live_analysis/dump_tests.py index 0497f95..3138e38 100755 --- a/live_analysis/dump_tests.py +++ b/live_analysis/dump_tests.py @@ -56,5 +56,6 @@ cur = cur + pagesize + if __name__ == "__main__": fetch() -- To view, visit https://gerrit.wikimedia.org/r/322210 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I00560d6f5632deb03324ed13ff0936f50a8483aa Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/fundraising/tools Gerrit-Branch: master Gerrit-Owner: Ejegg <eeggles...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits