From 5cc75e47c4ea9fceef737d6e7941c9bd8299d59d Mon Sep 17 00:00:00 2001 From: Niels Serup Date: Tue, 6 Mar 2012 12:56:50 +0100 Subject: [PATCH] fixed integer division --- subsites/lunchuman/lunchuman.wsgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsites/lunchuman/lunchuman.wsgi b/subsites/lunchuman/lunchuman.wsgi index 4478c39..165b9a6 100644 --- a/subsites/lunchuman/lunchuman.wsgi +++ b/subsites/lunchuman/lunchuman.wsgi @@ -78,7 +78,7 @@ foods int self.conn.commit() 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() def add_user(self, name):