Commit 128e8e57 authored by Francesco Poldi's avatar Francesco Poldi

Array instead of func

parent 2f25fde3
......@@ -31,7 +31,16 @@ def hour(datetime):
return strftime("%H", localtime(datetime))
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 = []
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