From 0a5aef09b4462978823e68ffe4c0b358c8307e78 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 3 Oct 2018 16:00:25 +0100 Subject: Fix start.py not giving the right arguments to database.servers.add --- src/Database.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Database.py') diff --git a/src/Database.py b/src/Database.py index 8c7e7f0d..27e4f113 100644 --- a/src/Database.py +++ b/src/Database.py @@ -12,9 +12,9 @@ class Servers(Table): self.database.execute( """INSERT INTO servers (alias, hostname, port, password, ipv4, tls, bindhost, nickname, username, realname) VALUES ( - ?, ?, ?, ?, ?, ?, ?, ?, ?)""", - [hostname, port, password, ipv4, tls, bindhost, nickname, username, - realname]) + ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)""", + [alias, hostname, port, password, ipv4, tls, bindhost, nickname, + username, realname]) def get_all(self): return self.database.execute_fetchall( "SELECT server_id, alias FROM servers") -- cgit v1.3.1-10-gc9f91