community-commits mailing list archives

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

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

Added:
    comdev/reporter.apache.org/trunk/scripts/pmcdates.py
      - copied, changed from r1711360, comdev/reporter.apache.org/trunk/data/pmcdates.py
Removed:
    comdev/reporter.apache.org/trunk/data/pmcdates.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=1712191&r1=1712190&r2=1712191&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/README.txt (original)
+++ comdev/reporter.apache.org/trunk/README.txt Tue Nov  3 00:16:15 2015
@@ -37,7 +37,7 @@ 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
 10 00      * * * cd /var/www/reporter.apache.org/scripts && ./python3logger.sh reportingcycles.py
-20 00      * * * cd /var/www/reporter.apache.org/data && ./python3logger.sh pmcdates.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
 
 # ensure that any new data files get picked up by the commit (which must be done by root)

Copied: comdev/reporter.apache.org/trunk/scripts/pmcdates.py (from r1711360, comdev/reporter.apache.org/trunk/data/pmcdates.py)
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/pmcdates.py?p2=comdev/reporter.apache.org/trunk/scripts/pmcdates.py&p1=comdev/reporter.apache.org/trunk/data/pmcdates.py&r1=1711360&r2=1712191&rev=1712191&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/data/pmcdates.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/pmcdates.py Tue Nov  3 00:16:15 2015
@@ -30,6 +30,8 @@ or the PMC was restarted (apr, xalan)
 
 """
 
+__PMCDATES = "../data/pmcdates.json"
+
 pmcdates = committee_info.pmcdates()
 
 for pmc in sorted(pmcdates):
@@ -47,8 +49,8 @@ for pmc in sorted(pmcdates):
         pmcdates[pmc]['pmc'].insert(2, 0)
         print(time.strftime('%Y-%m-%d = %m/%Y',time.gmtime(earliest)),startdate, pmc)
     
-print("Writing pmcdates.json")
-with open("pmcdates.json", "w", encoding='utf-8') as f:
+print("Writing " + __PMCDATES)
+with open(__PMCDATES, "w", encoding='utf-8') as f:
     json.dump(pmcdates, f, sort_keys = True, indent=1, ensure_ascii=False)
 
 print("All done!")
\ No newline at end of file



Mime
View raw message