fixes logic bug

This commit is contained in:
bernd2k 2020-01-05 13:23:21 +01:00
parent 87e007147c
commit a84886a6e6

View file

@ -161,7 +161,7 @@ while True:
time_closing = datetime.datetime.fromtimestamp(int( time_now )).strftime('%Y-%m-%d %H:%M:%S')
texts = data_status["closing_text"][number]["text"]
if MASTODON_ACCESS_TOKEN != "fill in your data!":
if TWITTER_ACCESS_KEY != "fill in your data!":
if texts.get("twitter") != None:
text = texts["twitter"] + " [CLOSED:" + time_closing + "]"