From d2d136539f3da86636a07f2bc8fa98b03c1cfd94 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 17 Nov 2022 10:14:03 -0500 Subject: [PATCH] Fix bug in insert variable name --- rffmpeg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rffmpeg b/rffmpeg index 52e5c45..b00099b 100755 --- a/rffmpeg +++ b/rffmpeg @@ -745,7 +745,7 @@ def run_control(config): click.echo("Adding new host '{}' ({})".format(host, name)) with dbconn(config) as cur: cur.execute( - "INSERT INTO hosts (hostname, weight, servername) VALUES (?, ?, ?)", (hostname, weight, name) + "INSERT INTO hosts (hostname, weight, servername) VALUES (?, ?, ?)", (host, weight, name) ) rffmpeg_click.add_command(rffmpeg_click_add)