forked from varia/bots
taking out lastid and nextid: not needed anymore in readdb
This commit is contained in:
parent
dd9539746d
commit
6c0179d7dd
@ -8,8 +8,6 @@ db = 'storage.json'
|
|||||||
def readdb():
|
def readdb():
|
||||||
storage = open(db, 'r').read()
|
storage = open(db, 'r').read()
|
||||||
messages = json.loads(storage)
|
messages = json.loads(storage)
|
||||||
lastid = sorted(list(messages.keys()))
|
|
||||||
nextid = str(int(lastid[-1])+1)
|
|
||||||
return messages
|
return messages
|
||||||
|
|
||||||
def writedb(message):
|
def writedb(message):
|
||||||
|
Loading…
Reference in New Issue
Block a user