fixed integer division
This commit is contained in:
1 parent
c850a6a2e0
commit
5cc75e47c4
1 file changed
+1
-1
@@ -78,7 +78,7 @@ foods int
|
|||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
|
|
||||||
def get_users(self):
|
def get_users(self):
|
||||||
self.cursor.execute('select * from users order by moneys / foods desc')
|
self.cursor.execute('select * from users order by moneys / (foods * 1.0) desc')
|
||||||
return self.cursor.fetchall()
|
return self.cursor.fetchall()
|
||||||
|
|
||||||
def add_user(self, name):
|
def add_user(self, name):
|
||||||
|
|||||||
Reference in new issue
Block a user