Eren Yilmaz 6 lat temu
rodzic
commit
30688b58af
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      model.py

+ 2 - 2
model.py

@@ -901,7 +901,7 @@ def delete_user(user_id):
 
     cursor.execute('''
         INSERT INTO news(title)
-        VALUES (CONCAT ((SELECT username FROM users WHERE rowid = ?), ' retired.'))
+        VALUES ((SELECT username FROM users WHERE rowid = ?) || ' retired.')
         ''', (user_id,))
 
     cursor.execute('''
@@ -933,7 +933,7 @@ def delete_ownable(ownable_id):
 
     cursor.execute('''
         INSERT INTO news(title)
-        VALUES (CONCAT ((SELECT name FROM ownables WHERE rowid = ?), ' can not be traded any more.'))
+        VALUES ((SELECT name FROM ownables WHERE rowid = ?) || ' can not be traded any more.')
         ''', (ownable_id,))
 
     cursor.execute('''