Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
younesStrittmatter authored Apr 18, 2024
1 parent 19926f9 commit 3e1f2f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,14 @@ def setup_study(

#_json["completion_code_action"] = "AUTOMATICALLY_APPROVE"

__save_post(
data = __save_post(
"https://api.prolific.co/api/v1/studies/",
headers={"Authorization": f"Token {prolific_token}"},
_json=_json,
)
keys_to_include = ["id", "maximum_allowed_time"]
study_dict = dict(
(key, value) for key, value in study.json().items() if key in keys_to_include
(key, value) for key, value in data.items() if key in keys_to_include
)

# save to temp_file
Expand Down

0 comments on commit 3e1f2f2

Please sign in to comment.