From db59781fdd1868f91b35d0b8b68efc563e837037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksa=20Siri=C5=A1ki?= <31509435+aleksasiriski@users.noreply.github.com> Date: Tue, 21 Feb 2023 21:10:19 +0100 Subject: [PATCH] forgot add command --- rffmpeg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rffmpeg b/rffmpeg index 19741e0..a9f11a0 100755 --- a/rffmpeg +++ b/rffmpeg @@ -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)