Commit 243f7e59 authored by Francesco Poldi's avatar Francesco Poldi

Array instead of func

parent ff008a84
...@@ -31,7 +31,16 @@ def hour(datetime): ...@@ -31,7 +31,16 @@ def hour(datetime):
return strftime("%H", localtime(datetime)) return strftime("%H", localtime(datetime))
def Tweet(Tweet, config): def Tweet(Tweet, config):
day = weekday(strftime("%A", localtime(Tweet.datetime))) weekdays = {
"Monday": 1,
"Tuesday": 2,
"Wednesday": 3,
"Thursday": 4,
"Friday": 5,
"Saturday": 6,
"Sunday": 7,
}
day = weekdays[strftime("%A", localtime(Tweet.datetime))]
actions = [] actions = []
nLikes = 0 nLikes = 0
......
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