From 06354d78c52feb3a08ed31f80d5b3818dcee3bee Mon Sep 17 00:00:00 2001 From: bernd2k Date: Thu, 15 Feb 2018 19:02:47 +0100 Subject: [PATCH] tag with status for each text tag with status for each text --- main.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 6fdfc11..21d1f13 100644 --- a/main.py +++ b/main.py @@ -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)