fix import script
This commit is contained in:
parent
c5d7d1b3ed
commit
3b922b6cb8
@ -11,6 +11,11 @@ if __name__ == '__main__':
|
||||
conn = get_conn()
|
||||
uids = input('Please input user ids split by spaces: ')
|
||||
for uid in uids.split():
|
||||
try:
|
||||
uid = int(uid)
|
||||
except (ValueError, TypeError):
|
||||
pass
|
||||
|
||||
conn.root.subscribers[uid] = Subscriber.from_chat(bot.get_chat(uid))
|
||||
commit()
|
||||
conn.close()
|
||||
|
Loading…
Reference in New Issue
Block a user