diff --git a/ofscraper/runner/close/final/final_script.py b/ofscraper/runner/close/final/final_script.py index 1288e82da..960394162 100644 --- a/ofscraper/runner/close/final/final_script.py +++ b/ofscraper/runner/close/final/final_script.py @@ -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,