diff options
Diffstat (limited to 'database.py')
-rwxr-xr-x | database.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/database.py b/database.py index a5c9682..b80b548 100755 --- a/database.py +++ b/database.py @@ -67,6 +67,11 @@ class Database: if commit: self.__connection.commit() + def set_lambda(self, user, toset): + with self.__connection.cursor() as cursor: + cursor.execute("UPDATE users SET lambda = %s WHERE user_name = %s;", (toset, user)) + self.__connection.commit() + def change_lambda(self, user, changeby): with self.__connection.cursor() as cursor: #this will make it go negative. You must check this operation is allowed. |