Skip to content
This repository has been archived by the owner on Nov 25, 2023. It is now read-only.

Commit

Permalink
Fixing logic on the filter and listifying the filtered results
Browse files Browse the repository at this point in the history
  • Loading branch information
kozobot committed Aug 10, 2021
1 parent 91a1ef0 commit 549219d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/onlyfans/classes/create_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ async def get_posts(
links, self.session_manager, api_type
)
# Filter out posts that are reported by the user as these will not have content
filtered_results = filter(lambda opt: "isReportedByMe" in opt and opt["isReportedByMe"] is False, results)
filtered_results = list(filter(lambda opt: not ("isReportedByMe" in opt and opt["isReportedByMe"]), results))
final_results = [create_post(x, self) for x in filtered_results]
self.temp_scraped.Posts = final_results
return final_results
Expand Down

0 comments on commit 549219d

Please sign in to comment.