community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1651965 - in /comdev/projects.apache.org/scripts/cronjobs: parsechairs.py parsecommitters.py podlings.py
Date Thu, 15 Jan 2015 08:13:21 GMT
Author: humbedooh
Date: Thu Jan 15 08:13:20 2015
New Revision: 1651965

URL: http://svn.apache.org/r1651965
Log:
don't write CSV, add verbosity

Modified:
    comdev/projects.apache.org/scripts/cronjobs/parsechairs.py
    comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py
    comdev/projects.apache.org/scripts/cronjobs/podlings.py

Modified: comdev/projects.apache.org/scripts/cronjobs/parsechairs.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/parsechairs.py?rev=1651965&r1=1651964&r2=1651965&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parsechairs.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parsechairs.py Thu Jan 15 08:13:20 2015
@@ -18,6 +18,9 @@ for committer in re.findall(r"<tr>[\s\S]
         chairs[project] = person
         
 
+print("Writing chairs.json")
 with open("../../site/json/foundation/chairs.json", "w") as f:
     f.write(json.dumps(chairs))
     f.close()
+
+print("All done!")
\ No newline at end of file

Modified: comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py?rev=1651965&r1=1651964&r2=1651965&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py Thu Jan 15 08:13:20 2015
@@ -32,11 +32,14 @@ for committer in re.findall(r"<tr>([\S\s
         }
         
 
+print("Writing people.json")
 with open("../../site/json/foundation/people.json", "w") as f:
     f.write(json.dumps(people))
     f.close()
     
+print("Writing committers.json")
 with open("../../site/json/foundation/committers.json", "w") as f:
     f.write(json.dumps(pmcs))
     f.close()
-    
\ No newline at end of file
+    
+print("All done!")
\ No newline at end of file

Modified: comdev/projects.apache.org/scripts/cronjobs/podlings.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/podlings.py?rev=1651965&r1=1651964&r2=1651965&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/podlings.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/podlings.py Thu Jan 15 08:13:20 2015
@@ -60,21 +60,6 @@ for s in itemlist :
                 'podling': True
             }
     
-
-with open('podlings.csv', 'w') as csvfile:
-    writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
-    writer.writeheader()
-    for year in range(2003,2015):
-        for month in range(1,13):
-            m = "%u-%02u" % (year, month)
-            writer.writerow({
-                'month': m,
-                'new': new[m],
-                'graduated': grads[m],
-                'retired': ret[m]
-            })
-    csvfile.close()
-    
 currentMonth = datetime.now().month
 currentYear = datetime.now().year
 
@@ -100,13 +85,15 @@ for i in js:
     current += i['graduated']
     current += i['retired']
     
+print("Writing evolution.json")
 with open('../../site/json/foundation/evolution.json', 'w') as f:
     f.write(json.dumps(js))
     f.close()
     
+print("Writing podlings.json")
 with open('../../site/json/foundation/podlings.json', 'w') as f:
     f.write(json.dumps(cpods))
     f.close()
     
-print("Done!")
+print("All done!")
     
\ No newline at end of file



Mime
View raw message