From 163656ab3e58dd21a1d16d41bff9f3b0b6bf54c2 Mon Sep 17 00:00:00 2001 From: jwansek Date: Wed, 22 Dec 2021 18:04:09 +0000 Subject: added !gitignore command, removed legacy commands --- database.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'database.py') 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. -- cgit v1.2.3