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

Unified Diff: modules/statsmaster/templates/anonymize_ips_head.erb

Issue 29464559: #1538 - Remove class statsmaster and associated resources (Closed)
Patch Set: Created June 13, 2017, 9:43 a.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
Index: modules/statsmaster/templates/anonymize_ips_head.erb
diff --git a/modules/statsmaster/templates/anonymize_ips_head.erb b/modules/statsmaster/templates/anonymize_ips_head.erb
deleted file mode 100644
index ca70c10e566dd609e24c910c43f8e2f89f8e8d0c..0000000000000000000000000000000000000000
--- a/modules/statsmaster/templates/anonymize_ips_head.erb
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env python
-
-import sys
-import os
-import re
-from datetime import datetime, timedelta
-
-yearmonth = sys.argv[1]
-if yearmonth == 'prevmonth':
- now = datetime.now()
- yearmonth = (now - timedelta(days=now.day)).strftime('%Y%m')
-year, month = re.search(r'^(\d{4})(\d{2})$', yearmonth).groups()

Powered by Google App Engine
This is Rietveld