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

@@ -201,21 +201,21 @@ def inp_in_reaction(line: str) -> str:
pipe = tokens[1]
key = token0.lower()
value = tokens[2]
return f"insert into reactions_pipe_{key} (pipe, value) values ('{pipe}', {value});"
return str(f"insert into reactions_pipe_{key} (pipe, value) values ('{pipe}', {value});")
elif token0 == 'TANK':
tank = tokens[1]
value = tokens[2]
return f"insert into reactions_tank (tank, value) values ('{tank}', {value});"
return str(f"insert into reactions_tank (tank, value) values ('{tank}', {value});")
else:
line = line.upper().strip()
for key in get_reaction_schema('').keys():
if line.startswith(key):
value = line.removeprefix(key).strip()
return f"update reactions set value = '{value}' where key = '{key}';"
return str(f"update reactions set value = '{value}' where key = '{key}';")
return ''
return str('')
def inp_out_reaction(name: str) -> list[str]: