diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2017-04-17 15:16:37 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2017-04-17 15:16:37 +0300 |
| commit | d0cd0d94453701235b732fefd63c45e906a15128 (patch) | |
| tree | bdf73cbff2dfef67e8dce7d906289986d4e790bc /project/shoutboxapicommunicator.py | |
| parent | e5c8439a8c0942b227ed3b9449365261786c5e39 (diff) | |
Send id to shoutbox as hex string
Diffstat (limited to 'project/shoutboxapicommunicator.py')
| -rw-r--r-- | project/shoutboxapicommunicator.py | 3 |
1 files changed, 2 insertions, 1 deletions
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(): |
