community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1712192 - in /comdev/reporter.apache.org/trunk: README.txt data/parsepmcs.py scripts/parsepmcs.py
Date Tue, 03 Nov 2015 00:26:03 GMT
Author: sebb
Date: Tue Nov  3 00:26:02 2015
New Revision: 1712192

URL: http://svn.apache.org/viewvc?rev=1712192&view=rev
Log:
Moved to scripts

Added:
    comdev/reporter.apache.org/trunk/scripts/parsepmcs.py
      - copied, changed from r1712191, comdev/reporter.apache.org/trunk/data/parsepmcs.py
Removed:
    comdev/reporter.apache.org/trunk/data/parsepmcs.py
Modified:
    comdev/reporter.apache.org/trunk/README.txt

Modified: comdev/reporter.apache.org/trunk/README.txt
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/README.txt?rev=1712192&r1=1712191&r2=1712192&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/README.txt (original)
+++ comdev/reporter.apache.org/trunk/README.txt Tue Nov  3 00:26:02 2015
@@ -35,17 +35,18 @@ crontab -l -u root (in puppet, part of p
 
 crontab -l -u www-data:
 # m h   dom mon dow   command
-00 4,12,20 * * * cd /var/www/reporter.apache.org/data && ./python3logger.sh parsepmcs.py
+00 4,12,20 * * * cd /var/www/reporter.apache.org/scripts && ./python3logger.sh parsepmcs.py
 10 00      * * * cd /var/www/reporter.apache.org/scripts && ./python3logger.sh reportingcycles.py
 20 00      * * * cd /var/www/reporter.apache.org/scripts && ./python3logger.sh pmcdates.py
 30 00      * * * cd /var/www/reporter.apache.org/scripts && ./python3logger.sh bugzillastats.py
 
+00 01      * * * cd /var/www/reporter.apache.org/scripts && ./python3logger.sh mailglomper2.py
+00 09      * * * cd /var/www/reporter.apache.org/scripts && ./python3logger.sh readjira.py
+
 # ensure that any new data files get picked up by the commit (which must be done by root)
 # TODO: either discard the output or work out how to log it (with timestamps) if there is
any output
 40 * * * *      cd /var/www/reporter.apache.org/data/releases && ( svn status | awk
'/^\? / {print $2}' | xargs -r svn add )
 
-00 01      * * * cd /var/www/reporter.apache.org/scripts && ./python3logger.sh mailglomper2.py
-00 09      * * * cd /var/www/reporter.apache.org/scripts && ./python3logger.sh readjira.py
 
 00 12      * * * curl -sS "(redacted)" > /var/www/reporter.apache.org/data/mailinglists.json
 

Copied: comdev/reporter.apache.org/trunk/scripts/parsepmcs.py (from r1712191, comdev/reporter.apache.org/trunk/data/parsepmcs.py)
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/parsepmcs.py?p2=comdev/reporter.apache.org/trunk/scripts/parsepmcs.py&p1=comdev/reporter.apache.org/trunk/data/parsepmcs.py&r1=1712191&r2=1712192&rev=1712192&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/data/parsepmcs.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/parsepmcs.py Tue Nov  3 00:26:02 2015
@@ -28,13 +28,16 @@ import json
 import os
 import datetime
 import time
+
+__HOME = '../data/'
+
 pmcs = {}
 
-with open("pmcs.json", "r", encoding='utf-8') as f:
+with open(__HOME + "pmcs.json", "r", encoding='utf-8') as f:
     pmcs = json.loads(f.read())
 
 projects = {}
-with open("projects.json", "r", encoding='utf-8') as f:
+with open(__HOME + "projects.json", "r", encoding='utf-8') as f:
     projects = json.loads(f.read())
 
 # Delete mistaken entries
@@ -135,12 +138,12 @@ for project in pmcs:
 
 
 print("Writing pmcs.json")
-with open("pmcs.json", "w", encoding='utf-8') as f:
+with open(__HOME + "pmcs.json", "w", encoding='utf-8') as f:
     json.dump(pmcs, f, sort_keys=True, indent=1, ensure_ascii=False)
     f.close()
 
 print("Writing projects.json")
-with open("projects.json", "w", encoding='utf-8') as f:
+with open(__HOME + "projects.json", "w", encoding='utf-8') as f:
     json.dump(projects, f, sort_keys=True ,indent=1, ensure_ascii=False)
     f.close()
 
@@ -159,7 +162,7 @@ for pmc in pmcs:
         del pmcs[pmc][id][2]
 
 print("Writing history/pmcs.json")
-with open("history/pmcs.json", "w", encoding='utf-8') as f:
+with open(__HOME + "history/pmcs.json", "w", encoding='utf-8') as f:
     json.dump(pmcs, f, sort_keys=True, indent=1, ensure_ascii=False)
     f.close()
 
@@ -168,9 +171,9 @@ for project in projects:
         del projects[project][id][2]
 
 print("Writing history/projects.json")
-with open("history/projects.json", "w", encoding='utf-8') as f:
+with open(__HOME + "history/projects.json", "w", encoding='utf-8') as f:
     json.dump(projects, f, sort_keys=True ,indent=1, ensure_ascii=False)
     f.close()
     
-    
+
 print("All done! removed %u retired entries" % ret)



Mime
View raw message