From 70d8be5cc2c70db564c842fc5f8eaaabb5dc38ae Mon Sep 17 00:00:00 2001 From: Kyle Kelley Date: Mon, 24 Feb 2014 15:54:55 -0600 Subject: [PATCH] Fix expires --- database/postgresql_user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/postgresql_user b/database/postgresql_user index 2982af9e4f1..b6383006cb4 100644 --- a/database/postgresql_user +++ b/database/postgresql_user @@ -176,7 +176,7 @@ def user_add(cursor, user, password, role_attr_flags, encrypted, expires): query = query + " PASSWORD %(password)s" query_password_data.update(password=password) if expires is not None: - query = query + " VALID UNTIL '%(expires)s'" % { "exipres": expires } + query = query + " VALID UNTIL '%(expires)s'" % { "expires": expires } query = query + " " + role_attr_flags cursor.execute(query, query_password_data) return True