Commit dafb10c7 authored by Raphael Beer's avatar Raphael Beer

Fix: counting sensitives on suspended accounts

parent aa8f5a91
......@@ -49,7 +49,8 @@ async def test(session, username: str) -> Tuple[str, Dict[str, Any]]:
profile["has_tweets"] = False
if profile["exists"] and not profile.get("protected", False):
log.debug(profile)
if profile["exists"] and not profile.get("protected", False) and not profile.get("suspended", False):
profile["sensitives"] = await count_sensitives(session, user_id)
return user_id, profile
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment