tag with status for each text

tag with status for each text
This commit is contained in:
bernd2k 2018-02-15 19:02:47 +01:00
parent eff0cffa22
commit 06354d78c5

View file

@ -88,10 +88,9 @@ while True:
number = len(data_status["closing_text"])
number = textselect(0, number - 1)
text = data_status["closing_text"][number]["text"] + " " + datetime.datetime.fromtimestamp(
int( time_now + 3600 )).strftime('%Y-%m-%d %H:%M:%S')
text = data_status["closing_text"][number]["text"] + " [closed:" + datetime.datetime.fromtimestamp(
int( time_now + 3600 )).strftime('%Y-%m-%d %H:%M:%S') + "]"
print("Text:", text)
print("Text:", text)
api.update_status(text)
# same text as before cannot be posted!
@ -106,8 +105,8 @@ while True:
number = len(data_status["opening_text"])
number = textselect(0, number - 1)
text = data_status["opening_text"][number]["text"] + " " + datetime.datetime.fromtimestamp(
int( time_now + 3600 )).strftime('%Y-%m-%d %H:%M:%S')
text = data_status["opening_text"][number]["text"] + " [open:" + datetime.datetime.fromtimestamp(
int( time_now + 3600 )).strftime('%Y-%m-%d %H:%M:%S') + "]"
print("Text:", text)
api.update_status(text)