From c20f2509bbe1bcf5a7271eee1fcbeb29a97a665a Mon Sep 17 00:00:00 2001 From: flifloo Date: Sat, 21 Dec 2019 11:49:06 +0100 Subject: [PATCH] Update requirements and add update script --- requirements.txt | 1 + update.py | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 update.py diff --git a/requirements.txt b/requirements.txt index f517b93..9c57d26 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +feedparser aiogram==2.3 aiohttp==3.6.0 arrow==0.11.0 diff --git a/update.py b/update.py new file mode 100644 index 0000000..d533cd4 --- /dev/null +++ b/update.py @@ -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