don't insert duplicate posts
This commit is contained in:
parent
e98ef9b669
commit
910829d946
1
main.py
1
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
|
#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"
|
#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
|
done = True
|
||||||
|
continue
|
||||||
if 'lang' in cfg:
|
if 'lang' in cfg:
|
||||||
try:
|
try:
|
||||||
if oi['object']['contentMap'][cfg['lang']]: # filter for language
|
if oi['object']['contentMap'][cfg['lang']]: # filter for language
|
||||||
|
|
Reference in New Issue