Browse Source

taking out lastid and nextid: not needed anymore in readdb

master
mb 4 years ago
parent
commit
6c0179d7dd
  1. 2
      LogBot/logbot.py

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

Loading…
Cancel
Save