Commit e29bb8f7 authored by Mindiell's avatar Mindiell

Correction on today's date

parent 815db623
...@@ -419,6 +419,7 @@ class Wantzel(object): ...@@ -419,6 +419,7 @@ class Wantzel(object):
Count number of articles not done in RP and updates the topic of the Count number of articles not done in RP and updates the topic of the
press review channel if needed. press review channel if needed.
""" """
print("count_articles method")
cursor = get_cursor() cursor = get_cursor()
cursor.execute("""SELECT COUNT(*) FROM presse cursor.execute("""SELECT COUNT(*) FROM presse
WHERE DATE_SUB(NOW(), INTERVAL 2 MONTH)<datec WHERE DATE_SUB(NOW(), INTERVAL 2 MONTH)<datec
...@@ -441,7 +442,7 @@ class Wantzel(object): ...@@ -441,7 +442,7 @@ class Wantzel(object):
now.tm_year, now.tm_year,
now.tm_mon, now.tm_mon,
now.tm_mday, now.tm_mday,
tm_isdst time.tzname[0]
), ),
"%Y-%m-%d %Z" "%Y-%m-%d %Z"
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment