forgot add command

This commit is contained in:
Aleksa Siriški 2023-02-21 21:10:19 +01:00
parent 8e487abbb4
commit db59781fdd

View file

@ -818,8 +818,8 @@ def run_control(config):
click.echo(f"Adding new host '{host}' ({name})")
with dbconn(config) as cur:
cur.execute(
f"INSERT INTO hosts (hostname, weight, servername) VALUES ({SQL_VAR_SIGN}, {SQL_VAR_SIGN}, {SQL_VAR_SIGN}, {SQL_VAR_SIGN})",
(host, weight, name, created),
f"INSERT INTO hosts (servername, hostname, weight, created) VALUES ({SQL_VAR_SIGN}, {SQL_VAR_SIGN}, {SQL_VAR_SIGN}, {SQL_VAR_SIGN})",
(name, host, weight, created),
)
rffmpeg_click.add_command(rffmpeg_click_add)