From d0cd0d94453701235b732fefd63c45e906a15128 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 17 Apr 2017 15:16:37 +0300 Subject: Send id to shoutbox as hex string --- project/shoutboxapicommunicator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/shoutboxapicommunicator.py b/project/shoutboxapicommunicator.py index 24dfa73..b9e57b6 100644 --- a/project/shoutboxapicommunicator.py +++ b/project/shoutboxapicommunicator.py @@ -18,7 +18,8 @@ class ShoutboxCommunicator(BaseCommunicator): @staticmethod def get_url(): - return "{}/api/last?&telegram=false&id={}".format(ShoutboxCommunicator.url, ShoutboxCommunicator.message_limit_seconds, ShoutboxCommunicator.largest_id) + id_hex = "{0:0{1}x}".format(ShoutboxCommunicator.largest_id, 24) + return "{}/api/last?&telegram=false&id={}".format(ShoutboxCommunicator.url, ShoutboxCommunicator.message_limit_seconds, id_hex) @staticmethod def post_url(): -- cgit v1.3