Skip to content

Commit

Permalink
fix final step when users are dictionaries
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Aug 21, 2024
1 parent 8d651bf commit 5cf9a23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ofscraper/runner/close/final/final_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def final_script(users):
log.debug("Running post script")
data = {}
for ele in users:
data[ele.id] = ele.model if isinstance(ele, Model) else ele
key=ele.model if isinstance(ele, Model) else ele["id"]
value=ele.model if isinstance(ele, Model) else ele
data[key] = value
out_dict = json.dumps(
{
"users": data,
Expand Down

0 comments on commit 5cf9a23

Please sign in to comment.