Update requirements and add update script
This commit is contained in:
parent
4587df372a
commit
c20f2509bb
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
feedparser
|
||||
aiogram==2.3
|
||||
aiohttp==3.6.0
|
||||
arrow==0.11.0
|
||||
|
|
9
update.py
Normal file
9
update.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
import shelve
|
||||
from EDTuser import User
|
||||
|
||||
with shelve.open("edt", writeback=True) as db:
|
||||
for u in db:
|
||||
nu = User(0, None)
|
||||
for v in db[u].__dict__:
|
||||
setattr(nu, v, db[u].__dict__[v])
|
||||
db[u] = nu
|
Reference in a new issue