diff --git a/import_users.py b/import_users.py index 84c6b6c..9bd0283 100755 --- a/import_users.py +++ b/import_users.py @@ -9,7 +9,7 @@ from config import BOT_TOKEN if __name__ == '__main__': bot = Bot(BOT_TOKEN) conn = get_conn() - uids = input('Please input user ids split by spaces') + uids = input('Please input user ids split by spaces: ') for uid in uids.split(): conn.root.subscribers[uid] = Subscriber.from_chat(bot.get_chat(uid)) commit() diff --git a/send_users_list.py b/send_users_list.py index 9d93f70..03d995d 100755 --- a/send_users_list.py +++ b/send_users_list.py @@ -14,7 +14,7 @@ def send_users_list(bot: Bot = None): subs = conn.root.subscribers.values() - messages = [f'Count: {subs.count()}\n'] + messages = [f'Count: {len(subs)}\n'] for sub in subs: # type: Subscriber msg = f'#{sub.id:<4} {sub.uid:>14} ' if sub.uid < 0: