Skip to content

Commit

Permalink
remove more forced after
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Sep 18, 2024
1 parent 190cb58 commit 131f3b4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ofscraper/data/api/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

@run
async def get_archived_posts(model_id, username, c=None):
after = await get_after(model_id, username, forced_after)
after = await get_after(model_id, username)
if len(read_args.retriveArgs().post_id or []) == 0 or len(
read_args.retriveArgs().post_id or []
) > constants.getattr("MAX_ARCHIVED_INDIVIDUAL_SEARCH"):
Expand Down
2 changes: 1 addition & 1 deletion ofscraper/data/api/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
@run
async def get_messages(model_id, username, c=None):
global after
after = await get_after(model_id, username, forced_after)
after = await get_after(model_id, username)
if len(read_args.retriveArgs().post_id or []) == 0 or len(
read_args.retriveArgs().post_id or []
) > constants.getattr("MAX_MESSAGES_INDIVIDUAL_SEARCH"):
Expand Down
2 changes: 1 addition & 1 deletion ofscraper/data/api/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

@run
async def get_streams_posts(model_id, username, c=None):
after = await get_after(model_id, username, forced_after)
after = await get_after(model_id, username)
time_log(username, after)
if len(read_args.retriveArgs().post_id or []) == 0 or len(
read_args.retriveArgs().post_id or []
Expand Down
2 changes: 1 addition & 1 deletion ofscraper/data/api/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
@run
async def get_timeline_posts(model_id, username, c=None):

after = await get_after(model_id, username, forced_after)
after = await get_after(model_id, username)
time_log(username, after)
if len(read_args.retriveArgs().post_id or []) == 0 or len(
read_args.retriveArgs().post_id or []
Expand Down

0 comments on commit 131f3b4

Please sign in to comment.