1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
TelegramEDT/update.py

9 lines
226 B
Python

import shelve
from base 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