[twitter] Fix issue with twitter exceeding request count

This commit is contained in:
Cathy Hu 2020-09-09 14:19:21 +02:00
parent ab9e8faf19
commit b1997e46c2

View file

@ -43,7 +43,7 @@ async def twitter_read_all_public(hood=Depends(get_hood_unauthorized)):
return [ return [
BodyTwitterPublic(username=twitterbot.username) BodyTwitterPublic(username=twitterbot.username)
for twitterbot in twitterbots for twitterbot in twitterbots
if twitterbot.verified == 1 and twitterbot.enabled == 1 if twitterbot.verified == 1 and twitterbot.enabled == 1 and twitterbot.username
] ]