Skip to content

Commit

Permalink
this is bad, fix this later
Browse files Browse the repository at this point in the history
  • Loading branch information
raad1masum committed Oct 27, 2024
1 parent 097d3b9 commit 6ab60f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def get(self, key, expected_type: typing.Type[T] = str) -> T:
if key not in self.form:
flask.abort(400, f'{key} was not found in request')
value = self.form[key]
# TODO fix this
return value
if is_dirty(value):
flask.abort(400, f'{key} was malformed')
if not isinstance(value, expected_type):
Expand Down

0 comments on commit 6ab60f1

Please sign in to comment.