Fix start.py not giving the right arguments to database.servers.add
This commit is contained in:
parent
27c191a668
commit
0a5aef09b4
2 changed files with 5 additions and 4 deletions
|
@ -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")
|
||||
|
|
3
start.py
3
start.py
|
@ -75,8 +75,9 @@ else:
|
|||
nickname = input("nickname: ")
|
||||
username = input("username: ")
|
||||
realname = input("realname: ")
|
||||
bindhost = input("bindhost?: ")
|
||||
bot.database.servers.add(alias, hostname, port, password, ipv4,
|
||||
tls, nickname, username, realname)
|
||||
tls, bindhost, nickname, username, realname)
|
||||
except KeyboardInterrupt:
|
||||
print()
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue