Explorar o código

fix tiny bug in postgresql driver

oz123 %!s(int64=10) %!d(string=hai) anos
pai
achega
e26e37a7d2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pwman/data/drivers/postgresql.py

+ 1 - 1
pwman/data/drivers/postgresql.py

@@ -54,7 +54,7 @@ class PostgresqlDatabase(Database):
             version = cur.fetchone()
             con.close()
             cur.close()
-            return version
+            return version[-1]
         except pg.ProgrammingError:
             con.rollback()