Fix build error
This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user