Skip to content

Commit

Permalink
fix httpx and fix normal downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Feb 20, 2024
1 parent 625aa0f commit 120bd24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ofscraper/api/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ async def scrape_profile_helper_async(c, username: Union[int, str]):
if r.ok:
cache.set(
f"username_{username}",
await r.json(),
await r.json_(),
int(constants.getattr("PROFILE_DATA_EXPIRY_ASYNC")),
)
cache.close()
log.trace(f"username date: {await r.json()}")
return await r.json()
log.trace(f"username date: {await r.json_()}")
return await r.json_()
elif r.status == 404:
return {"username": "modeldeleted"}
else:
Expand Down

0 comments on commit 120bd24

Please sign in to comment.