diff --git a/subredditfetcher_bot_volumes/data/newsbot.db b/subredditfetcher_bot_volumes/data/newsbot.db index 2c5e1e7..8be8605 100644 Binary files a/subredditfetcher_bot_volumes/data/newsbot.db and b/subredditfetcher_bot_volumes/data/newsbot.db differ diff --git a/subredditfetcher_bot_volumes/last_updated.txt b/subredditfetcher_bot_volumes/last_updated.txt index 97702fb..2b81a34 100644 --- a/subredditfetcher_bot_volumes/last_updated.txt +++ b/subredditfetcher_bot_volumes/last_updated.txt @@ -1 +1 @@ -865610176 \ No newline at end of file +986119394 \ No newline at end of file diff --git a/subredditfetcher_bot_volumes/telegram.py b/subredditfetcher_bot_volumes/telegram.py index e2c3fd9..766e9e3 100644 --- a/subredditfetcher_bot_volumes/telegram.py +++ b/subredditfetcher_bot_volumes/telegram.py @@ -64,7 +64,7 @@ def handle_incoming_messages(last_updated): with db.atomic() as txn: try: sources = Source.create(person_id=person_id, fetch_from=sources_dict[person_id]) - log.info('Inserted row id: {1}'.format(sources.person_id)) + log.info('Inserted row id: {0}'.format(sources.person_id)) except peewee.IntegrityError: sources = Source.update(fetch_from=sources_dict[person_id]).where(person_id == person_id) rows_updated = sources.execute()