From b1997e46c24991bab9c81feff974cd421ec3142a Mon Sep 17 00:00:00 2001 From: Cathy Hu Date: Wed, 9 Sep 2020 14:19:21 +0200 Subject: [PATCH] [twitter] Fix issue with twitter exceeding request count --- kibicara/platforms/twitter/webapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibicara/platforms/twitter/webapi.py b/kibicara/platforms/twitter/webapi.py index fc7c78b..e08caa2 100644 --- a/kibicara/platforms/twitter/webapi.py +++ b/kibicara/platforms/twitter/webapi.py @@ -43,7 +43,7 @@ async def twitter_read_all_public(hood=Depends(get_hood_unauthorized)): return [ BodyTwitterPublic(username=twitterbot.username) for twitterbot in twitterbots - if twitterbot.verified == 1 and twitterbot.enabled == 1 + if twitterbot.verified == 1 and twitterbot.enabled == 1 and twitterbot.username ]