make the code less ugly

This commit is contained in:
ActuallyKit
2023-07-09 02:52:04 +07:00
parent a437a34bcf
commit c321c773f2

View File

@@ -1762,9 +1762,8 @@ class TwitterAPI():
yield user
elif entry["entryId"].startswith("cursor-bottom-"):
cursor = entry["content"]["value"]
if (cursor.startswith("-1|")):
stop = True
if (cursor.startswith("0|")):
if cursor.startswith("-1|") or \
cursor.startswith("0|"):
stop = True
if stop or not cursor or not entry: