Так должно быть ?
top_users(self, user_id):
with self.connection:
result = self.cursor.execute("SELECT Nick_name FROM users ORDER BY money DESC",(user_id,)).fetchall
for row in result:
top = str(row[0])
return top
Так должно быть ?
top_users(self, user_id):
with self.connection:
result = self.cursor.execute("SELECT Nick_name FROM users ORDER BY money DESC",(user_id,)).fetchall
for row in result:
top = str(row[0])
return top
top_users(self, user_id):
with self.connection:
result = self.cursor.execute("SELECT Nick_name FROM users ORDER BY money DESC",(user_id,)).fetchall
for row in result:
top = str(row[0])
return top