Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py
Date: Mon, 01 Sep 2014 19:48:17
Message-Id: 20140901194814.62C0A474B@oystercatcher.gentoo.org
1 hwoarang 14/09/01 19:48:14
2
3 Modified: gmn_bugzie.py
4 Log:
5 gmn_bugzie.py: Use cmd arguments if necessary
6
7 Revision Changes Path
8 1.14 src/gwn/gmn_bugzie.py
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.14&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.14&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.13&r2=1.14
13
14 Index: gmn_bugzie.py
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v
17 retrieving revision 1.13
18 retrieving revision 1.14
19 diff -u -r1.13 -r1.14
20 --- gmn_bugzie.py 4 May 2014 11:23:36 -0000 1.13
21 +++ gmn_bugzie.py 1 Sep 2014 19:48:14 -0000 1.14
22 @@ -80,8 +80,6 @@
23 # get dates from command line, else use now (time.time())
24 starttime = time.gmtime(time.time() - (60 * 60 * 24 * 31))
25 endtime = time.gmtime(time.time() - (60 * 60 * 24 * 1))
26 -dateimg = time.strftime("%Y-%m",endtime)
27 -datefor = time.strftime("%Y/%m",endtime)
28
29 if len(sys.argv) > 1:
30 if len(sys.argv) >= 2:
31 @@ -94,6 +92,9 @@
32 print "dates must be passed in 'yyyymmdd' format"
33 print "if no dates are specified then it defaults to a date range of the last 30 days"
34
35 +dateimg = time.strftime("%Y-%m",endtime)
36 +datefor = time.strftime("%Y/%m",endtime)
37 +
38 #1. Set up the dates we care about...a 30 day window that ends yesterday
39 date_to = time.strftime("%Y-%m-%d", endtime)
40 date_to_display = time.strftime("%d %B %Y", endtime)