From 6c0179d7ddef261d5a8cd34bba6b31c99e4d7cfa Mon Sep 17 00:00:00 2001 From: mb Date: Fri, 22 Jan 2021 10:18:43 +0100 Subject: [PATCH] taking out lastid and nextid: not needed anymore in readdb --- LogBot/logbot.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/LogBot/logbot.py b/LogBot/logbot.py index 524831e..12b4b02 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -8,8 +8,6 @@ db = 'storage.json' def readdb(): storage = open(db, 'r').read() messages = json.loads(storage) - lastid = sorted(list(messages.keys())) - nextid = str(int(lastid[-1])+1) return messages def writedb(message):