Skip to content

Commit

Permalink
Merge pull request #10 from AutoResearch/9-bugfix-fix-if-else-stateme…
Browse files Browse the repository at this point in the history
…nt-for-submission-=-observations

fix if else logic number submissions > observations
  • Loading branch information
younesStrittmatter authored May 20, 2024
2 parents a41844b + 7f5e631 commit 2818261
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/autora/experiment_runner/firebase_prolific/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
publish_study,
get_submissions_incompleted,
request_return_all,
approve_all_no_code
approve_all_no_code,
approve_all
)


Expand Down Expand Up @@ -96,6 +97,7 @@ def _firebase_prolific_run(conditions, **kwargs):
# check prolific
if prolific_dict:
if not counter % 5:
approve_all(study_id, kwargs["prolific_token"])
if approve_no_code:
approve_all_no_code(study_id, kwargs["prolific_token"])
else:
Expand All @@ -109,7 +111,7 @@ def _firebase_prolific_run(conditions, **kwargs):
check_prolific = check_prolific_status(study_id, kwargs["prolific_token"])
if (
check_prolific["number_of_submissions"]
>= check_prolific["total_available_places"] and check_firebase == "finished"
>= check_prolific["total_available_places"]
):
if check_firebase == "finished":
observation = get_observations("autora", kwargs["firebase_credentials"])
Expand Down

0 comments on commit 2818261

Please sign in to comment.