소스 검색

fix tiny bug in postgresql driver

oz123 10 년 전
부모
커밋
e26e37a7d2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()