tag with status for each text
tag with status for each text
This commit is contained in:
parent
eff0cffa22
commit
06354d78c5
1 changed files with 4 additions and 5 deletions
9
main.py
9
main.py
|
@ -88,10 +88,9 @@ while True:
|
||||||
number = len(data_status["closing_text"])
|
number = len(data_status["closing_text"])
|
||||||
number = textselect(0, number - 1)
|
number = textselect(0, number - 1)
|
||||||
|
|
||||||
text = data_status["closing_text"][number]["text"] + " " + datetime.datetime.fromtimestamp(
|
text = data_status["closing_text"][number]["text"] + " [closed:" + datetime.datetime.fromtimestamp(
|
||||||
int( time_now + 3600 )).strftime('%Y-%m-%d %H:%M:%S')
|
int( time_now + 3600 )).strftime('%Y-%m-%d %H:%M:%S') + "]"
|
||||||
|
|
||||||
print("Text:", text)
|
|
||||||
print("Text:", text)
|
print("Text:", text)
|
||||||
api.update_status(text)
|
api.update_status(text)
|
||||||
# same text as before cannot be posted!
|
# same text as before cannot be posted!
|
||||||
|
@ -106,8 +105,8 @@ while True:
|
||||||
number = len(data_status["opening_text"])
|
number = len(data_status["opening_text"])
|
||||||
number = textselect(0, number - 1)
|
number = textselect(0, number - 1)
|
||||||
|
|
||||||
text = data_status["opening_text"][number]["text"] + " " + datetime.datetime.fromtimestamp(
|
text = data_status["opening_text"][number]["text"] + " [open:" + datetime.datetime.fromtimestamp(
|
||||||
int( time_now + 3600 )).strftime('%Y-%m-%d %H:%M:%S')
|
int( time_now + 3600 )).strftime('%Y-%m-%d %H:%M:%S') + "]"
|
||||||
|
|
||||||
print("Text:", text)
|
print("Text:", text)
|
||||||
api.update_status(text)
|
api.update_status(text)
|
||||||
|
|
Reference in a new issue