incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1545460 - in /incubator/public/trunk: assign_shepherds.py clutch2report.py
Date Mon, 25 Nov 2013 23:44:01 GMT
Author: marvin
Date: Mon Nov 25 23:44:01 2013
New Revision: 1545460

URL: http://svn.apache.org/r1545460
Log:
Fix fencepost error.

Modified:
    incubator/public/trunk/assign_shepherds.py
    incubator/public/trunk/clutch2report.py

Modified: incubator/public/trunk/assign_shepherds.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/assign_shepherds.py?rev=1545460&r1=1545459&r2=1545460&view=diff
==============================================================================
--- incubator/public/trunk/assign_shepherds.py (original)
+++ incubator/public/trunk/assign_shepherds.py Mon Nov 25 23:44:01 2013
@@ -385,7 +385,7 @@ def process_cli_args():
     options = parser.parse_args()
     now = datetime.datetime.now()
     if options.month == 0:
-        options.month = ((now.month - 1) % 12) + 2
+        options.month = (now.month % 12) + 1
     if options.month < now.month:
         options.year = now.year + 1
     else:

Modified: incubator/public/trunk/clutch2report.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch2report.py?rev=1545460&r1=1545459&r2=1545460&view=diff
==============================================================================
--- incubator/public/trunk/clutch2report.py (original)
+++ incubator/public/trunk/clutch2report.py Mon Nov 25 23:44:01 2013
@@ -205,7 +205,7 @@ def main():
     options = cliargs()
     if options.month == 0:
         now = datetime.datetime.now()
-        month = ((now.month - 1) % 12) + 2
+        month = (now.month % 12) + 2
     else:
         month = options.month
     curGroup = months2groups[month - 1]



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message