From 910829d9464a9ef5f0365b4df3e57e47d166a7d8 Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 16 Aug 2019 13:50:47 +1000 Subject: [PATCH] don't insert duplicate posts --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 62ed6aa..011ef24 100755 --- a/main.py +++ b/main.py @@ -220,6 +220,7 @@ for f in following: #we've caught up to the notices we've already downloaded, so we can stop now #you might be wondering, "lynne, what if the instance ratelimits you after 40 posts, and they've made 60 since main.py was last run? wouldn't the bot miss 20 posts and never be able to see them?" to which i reply, "i know but i don't know how to fix it" done = True + continue if 'lang' in cfg: try: if oi['object']['contentMap'][cfg['lang']]: # filter for language