taking out lastid and nextid: not needed anymore in readdb

This commit is contained in:
mb 2021-01-22 10:18:43 +01:00
parent dd9539746d
commit 6c0179d7dd

View File

@ -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):