From bb9fc2208a4113b9dd954d928b86637f99d33f96 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Mon, 4 Mar 2019 02:25:10 +0300 Subject: [PATCH] fix --- import_users.py | 2 +- send_users_list.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: