You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2018/01/06 01:55:16 UTC
[kibble] branch master updated: New Year buggo
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git
The following commit(s) were added to refs/heads/master by this push:
new 7f8a961 New Year buggo
7f8a961 is described below
commit 7f8a961962fb4bda26697d8a7cf1884c5079f91a
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sat Jan 6 02:55:07 2018 +0100
New Year buggo
nm needs to be in the 1..12 range, 0 is not an option here.
---
api/pages/code/pony-timeseries.py | 4 ++++
api/pages/code/retention.py | 4 ++++
api/pages/issue/pony-timeseries.py | 4 ++++
api/pages/issue/retention.py | 4 ++++
api/pages/mail/pony-timeseries.py | 4 ++++
api/pages/mail/retention.py | 4 ++++
6 files changed, 24 insertions(+)
diff --git a/api/pages/code/pony-timeseries.py b/api/pages/code/pony-timeseries.py
index 3f79ebe..a7c1c8e 100644
--- a/api/pages/code/pony-timeseries.py
+++ b/api/pages/code/pony-timeseries.py
@@ -95,6 +95,10 @@ def run(API, environ, indata, session):
ny = tnow.year
ts = []
+ if nm < 1:
+ nm += 12
+ ny = ny - 1
+
while ny > 1970:
d = datetime.date(ny, nm, 1)
t = time.mktime(d.timetuple())
diff --git a/api/pages/code/retention.py b/api/pages/code/retention.py
index 3da76ff..6e10844 100644
--- a/api/pages/code/retention.py
+++ b/api/pages/code/retention.py
@@ -95,6 +95,10 @@ def run(API, environ, indata, session):
cy = ny
ts = []
+ if nm < 1:
+ nm += 12
+ ny = ny - 1
+
peopleSeen = {}
activePeople = {}
allPeople = {}
diff --git a/api/pages/issue/pony-timeseries.py b/api/pages/issue/pony-timeseries.py
index bfaeccf..2bf096d 100644
--- a/api/pages/issue/pony-timeseries.py
+++ b/api/pages/issue/pony-timeseries.py
@@ -95,6 +95,10 @@ def run(API, environ, indata, session):
ny = tnow.year
ts = []
+ if nm < 1:
+ nm += 12
+ ny = ny - 1
+
while ny > 1970:
d = datetime.date(ny, nm, 1)
t = time.mktime(d.timetuple())
diff --git a/api/pages/issue/retention.py b/api/pages/issue/retention.py
index bea29a0..22e021e 100644
--- a/api/pages/issue/retention.py
+++ b/api/pages/issue/retention.py
@@ -97,6 +97,10 @@ def run(API, environ, indata, session):
cy = ny
ts = []
+ if nm < 1:
+ nm += 12
+ ny = ny - 1
+
peopleSeen = {}
activePeople = {}
allPeople = {}
diff --git a/api/pages/mail/pony-timeseries.py b/api/pages/mail/pony-timeseries.py
index 4a8bbf8..fefd776 100644
--- a/api/pages/mail/pony-timeseries.py
+++ b/api/pages/mail/pony-timeseries.py
@@ -94,6 +94,10 @@ def run(API, environ, indata, session):
ny = tnow.year
ts = []
+ if nm < 1:
+ nm += 12
+ ny = ny - 1
+
while ny > 1970:
d = datetime.date(ny, nm, 1)
t = time.mktime(d.timetuple())
diff --git a/api/pages/mail/retention.py b/api/pages/mail/retention.py
index 6bdcf9c..6734da1 100644
--- a/api/pages/mail/retention.py
+++ b/api/pages/mail/retention.py
@@ -97,6 +97,10 @@ def run(API, environ, indata, session):
cy = ny
ts = []
+ if nm < 1:
+ nm += 12
+ ny = ny - 1
+
peopleSeen = {}
activePeople = {}
allPeople = {}
--
To stop receiving notification emails like this one, please contact
['"commits@kibble.apache.org" <co...@kibble.apache.org>'].