diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-02 16:20:20 +0700 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-02 16:20:20 +0700 |
| commit | 10382a1985dae5afd13c1bda10b43ffbfeda209b (patch) | |
| tree | 8549484da905e128a040826eb89b52a1bef9eb47 /backend | |
| parent | b8155a7854182bbf1bf750226bb62fc38b6bbcaf (diff) | |
type error
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/main.py b/backend/main.py index 20078d3..95a61dd 100644 --- a/backend/main.py +++ b/backend/main.py @@ -388,7 +388,7 @@ def finish_laundry(data: FinishRequestData, response: fastapi.Response, session_ def uri_to_information(data: InformationRequestData, response: fastapi.Response, auth_block: Annotated[str | None, fastapi.Cookie()] = None): info = None try: - if data.machine_id: + if len(data.machine_id) > 0: info = URI_TO_MACHINES[data.machine_id] except KeyError: response.status_code = fastapi.status.HTTP_404_NOT_FOUND |
