File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1- from typing import List , Dict
21from fastapi import FastAPI , responses , status
32from fastapi .encoders import jsonable_encoder
43from pydantic import BaseModel
@@ -102,4 +101,5 @@ def update_versions_to_newest() -> responses.PlainTextResponse:
102101 general .remove_and_refresh_session (session_token )
103102 return responses .PlainTextResponse (status_code = status .HTTP_200_OK )
104103
105- session .start_session_cleanup_thread ()
104+
105+ session .start_session_cleanup_thread ()
Original file line number Diff line number Diff line change 33from typing import Any , List , Dict , Union
44
55from submodules .model .business_objects import app_version , general
6+ from submodules .model .enums import try_parse_enum_value
67from service_overview import Service , check_db_uptodate , get_services_info
78import git
89from upgrade_logic import base_logic
@@ -91,7 +92,7 @@ def check_has_newer_version() -> bool:
9192 lookup_dict = get_services_info (True )
9293 diff_version = False
9394 for db_entry in current_version :
94- x = Service [ db_entry .service ]
95+ x = try_parse_enum_value ( db_entry .service , Service , False )
9596 if x in lookup_dict :
9697 link = lookup_dict [x ]["link" ]
9798 remote_version = __last_tag (link )
@@ -123,7 +124,7 @@ def __last_tag(repo_link: str) -> Any:
123124 if tag [0 ] == "v" :
124125 return tag [1 :]
125126 return tag
126- except Exception as e :
127+ except Exception :
127128 return "0.0.0"
128129
129130
You can’t perform that action at this time.
0 commit comments