Fix build error

This commit is contained in:
wqy
2024-01-13 15:02:22 +08:00
parent 37f5210ab9
commit 44edeffad9
25 changed files with 43 additions and 40 deletions

View File

@@ -84,9 +84,9 @@ def inp_in_status(line: str) -> str:
link = str(tokens[0])
value = tokens[1].upper()
if value == LINK_STATUS_OPEN or value == LINK_STATUS_CLOSED or value == LINK_STATUS_ACTIVE:
return f"insert into status (link, status, setting) values ('{link}', '{value}', null);"
return str(f"insert into status (link, status, setting) values ('{link}', '{value}', null);")
else:
return f"insert into status (link, status, setting) values ('{link}', null, {float(value)});"
return str(f"insert into status (link, status, setting) values ('{link}', null, {float(value)});")
def inp_out_status(name: str) -> list[str]: