community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1738975 - /comdev/reporter.apache.org/trunk/scripts/mailglomper2.py
Date Wed, 13 Apr 2016 17:51:46 GMT
Author: sebb
Date: Wed Apr 13 17:51:46 2016
New Revision: 1738975

URL: http://svn.apache.org/viewvc?rev=1738975&view=rev
Log:
Don't need ETag at present

Modified:
    comdev/reporter.apache.org/trunk/scripts/mailglomper2.py

Modified: comdev/reporter.apache.org/trunk/scripts/mailglomper2.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/mailglomper2.py?rev=1738975&r1=1738974&r2=1738975&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/mailglomper2.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/mailglomper2.py Wed Apr 13 17:51:46 2016
@@ -140,10 +140,10 @@ def weekly_stats(ml, date):
             lengthold = entry['length']
         except:
             lengthold = 'N/A'
-        try:
-            etagold = entry['etag']
-        except:
-            etagold = 'N/A'
+#         try:
+#             etagold = entry['etag']
+#         except:
+#             etagold = 'N/A'
         weekly = {}
         # JSON keys are always stored as strings; fix these up for main code
         for w in entry['weekly']:
@@ -161,11 +161,11 @@ def weekly_stats(ml, date):
             length = mldata.headers['Content-Length']
         except:
             length = 'unknown'
-        try:
-            etag = mldata.headers['Etag']
-        except:
-            etag = 'unknown'
-        tsprint("Processing %s (%s > %s) Length: %s (%s) Etag: %s (%s)" % (fname, stamp,
stampold, length, lengthold, etag, etagold))
+#         try:
+#             etag = mldata.headers['Etag']
+#         except:
+#             etag = 'unknown'
+        tsprint("Processing %s (%s > %s) Length: %s (%s)" % (fname, stamp, stampold, length,
lengthold))
         # INFRA-11661 - spurious date changes so we check the length
         if ct != None and length == lengthold:
             tsprint("Unchanged length, using cached data (%d)" % ct)
@@ -192,8 +192,8 @@ def weekly_stats(ml, date):
                               'ct': ct,
                               'weekly': weekly,
                               'stamp': stamp,
-                              'length': length,
-                              'etag': etag
+                              'length': length
+#                               'etag': etag
                             }
     else:
 #         tsprint("Returning cache for: " + fname)
@@ -223,7 +223,7 @@ for mlist in re.finditer(r"<a href='([-a
     pfx = ml.split('-')[0]
     # skip all but current projects
     if not pfx in pmcmails:
-        tsprint("Skipping " + ml) # temporary for checking
+#         tsprint("Skipping " + ml) # temporary for checking
         continue
     
     tsprint("Processing: " + ml)



Mime
View raw message