Skip to content

Commit

Permalink
make the postfix check return 200 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
wmelder committed Jul 19, 2024
1 parent 17c11a8 commit 4d7bac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apis/resource/resource_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def check_for_wemi_postfix(self, identifier: str) -> tuple[int, str]:
:param identifier: string with the DAAN ID, incl. postfix or without.
:returns: tuple containing 'status_code' 302 when postfix is included or 0,
and 'identifier', always the DAAN ID without postfix."""
status_code = 0
status_code = 200
identifier_list = identifier.split("_", 1)
split_identifier = identifier_list[0]
if len(identifier_list) == 2:
Expand Down

0 comments on commit 4d7bac4

Please sign in to comment.