From 5a27823244c0d96de73064baf206e049866495cf Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 29 Apr 2016 12:43:22 +0100 Subject: [PATCH] added get_server to Database.py, for some future use. dunno. --- Database.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Database.py b/Database.py index c453b396..cd4bbc2b 100644 --- a/Database.py +++ b/Database.py @@ -180,3 +180,8 @@ class Database(object): self.cursor().execute("""SELECT server_id, hostname, port, password, ipv4, tls, nickname, username, realname FROM servers""") return self.cursor().fetchall() + def get_server(self, id): + self.cursor().execute("""SELECT server_id, hostname, port, password, + ipv4, tls, nickname, username, realname FROM servers WHERE + server_id=?""", [id]) + return self.cursors.fetchall()