From 8fc7a7652ab743b9c808939941b031ec419d799c Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 13 Nov 2018 11:13:04 +0000 Subject: Return new server_id from Database.servers.add --- src/utils/cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/utils/cli.py') diff --git a/src/utils/cli.py b/src/utils/cli.py index 98d6be92..a7ab33c9 100644 --- a/src/utils/cli.py +++ b/src/utils/cli.py @@ -15,5 +15,6 @@ def add_server(database: Database.Database): username = input("username: ") realname = input("realname: ") bindhost = input("bindhost?: ") - database.servers.add(alias, hostname, port, password, ipv4, tls, bindhost, nickname, username, realname) - + admin = input("admin nickname: ") + id = database.servers.add(alias, hostname, port, password, ipv4, tls, + bindhost, nickname, username, realname) -- cgit v1.3.1-10-gc9f91