incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1715805 - /incubator/public/trunk/clutch2report.py
Date Mon, 23 Nov 2015 13:33:54 GMT
Author: marvin
Date: Mon Nov 23 13:33:53 2015
New Revision: 1715805

URL: http://svn.apache.org/viewvc?rev=1715805&view=rev
Log:
Fix off-by-one month name.

Modified:
    incubator/public/trunk/clutch2report.py

Modified: incubator/public/trunk/clutch2report.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch2report.py?rev=1715805&r1=1715804&r2=1715805&view=diff
==============================================================================
--- incubator/public/trunk/clutch2report.py (original)
+++ incubator/public/trunk/clutch2report.py Mon Nov 23 13:33:53 2015
@@ -68,8 +68,7 @@ codebases wishing to become part of the
 * Releases
 
   The following releases entered distribution during the month of
-  {month}:
-
+  {last_month}:
 
 
 * IP Clearance
@@ -225,9 +224,10 @@ def main():
     options = cliargs()
     now = datetime.datetime.now()
     if options.month == 0:
-        month = (now.month % 12) + 1
+        month = now.month + 1
     else:
         month = options.month
+    last_month = ((now.month + 11) % 12) + 1
     year = now.year if month >= now.month else now.year + 1
     curGroup = months2groups[month - 1]
     inputFile = open('clutch.pkl', 'rb')
@@ -246,6 +246,7 @@ def main():
             toc = toc + projects[project]['fullName'] + "\n"
          
     output.write(boilerplate.format(month=calendar.month_name[month],
+                                    last_month=calendar.month_name[last_month],
                                     year=year, toc=toc, shepherds=shepherds,
                                     timeline=timeline))
     



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


Mime
View raw message