Skip to content

Commit

Permalink
fix is_graded_type error
Browse files Browse the repository at this point in the history
  • Loading branch information
= Enea_Gore committed Jul 8, 2024
1 parent 5f8c27e commit c8438e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions athena/athena/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,7 @@ def feedback_provider(func: Union[
submission_type = inspect.signature(func).parameters["submission"].annotation
module_config_type = inspect.signature(func).parameters["module_config"].annotation if "module_config" in inspect.signature(func).parameters else None
is_graded_type = inspect.signature(func).parameters["is_graded"].annotation if "is_graded" in inspect.signature(func).parameters else None
if is_graded_type:
is_graded_type = is_graded_type.annotation
else:
if not is_graded_type:
is_graded_type = bool # Default to a known type
@app.post("/feedback_suggestions", responses=module_responses)
@authenticated
Expand Down

0 comments on commit c8438e7

Please sign in to comment.