Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/reports/bin/removeOldUsers.py

Issue 29569566: Noissue - Replace flake8-putty with flake8-per-file-ignores, update to flake8 3 (sitescripts) (Closed)
Patch Set: Created Oct. 8, 2017, 6:02 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sitescripts/reports/bin/removeOldReports.py ('k') | sitescripts/reports/bin/updateDigests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/reports/bin/removeOldUsers.py
===================================================================
--- a/sitescripts/reports/bin/removeOldUsers.py
+++ b/sitescripts/reports/bin/removeOldUsers.py
@@ -22,6 +22,7 @@
executeQuery(cursor, 'DELETE FROM #PFX#users WHERE ADDDATE(mtime, INTERVAL %s MONTH) < NOW()', months)
get_db().commit()
+
if __name__ == '__main__':
setupStderr()
removeOldUsers()
« no previous file with comments | « sitescripts/reports/bin/removeOldReports.py ('k') | sitescripts/reports/bin/updateDigests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld