Refactor get_id_from_search_string function to convert UUID to string in service.py
This commit is contained in:
parent
0cee24dfbe
commit
e3edc54d64
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ def get_id_from_search_string(search_string: str) -> Optional[str]:
|
||||||
possible_id = search_string.split("/")[-1]
|
possible_id = search_string.split("/")[-1]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
possible_id = UUID(search_string)
|
possible_id = str(UUID(search_string))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
possible_id = None
|
possible_id = None
|
||||||
return possible_id
|
return possible_id
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue