summaryrefslogtreecommitdiffstats
path: root/bitvend/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitvend/views.py')
-rw-r--r--bitvend/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitvend/views.py b/bitvend/views.py
index 7e424cb..23e8147 100644
--- a/bitvend/views.py
+++ b/bitvend/views.py
@@ -19,12 +19,14 @@ bp = Blueprint('bitvend', __name__, template_folder='templates')
def index():
transactions = []
hallofshame = User.query \
+ .with_entities(User, User.balance) \
.order_by(User.balance.asc()) \
.filter(User.balance < 0) \
.limit(5) \
.all()
hallofaddicts = User.query \
+ .with_entities(User, User.purchase_amount, User.purchase_count) \
.order_by(User.purchase_amount.desc()) \
.filter(User.purchase_amount > 0) \
.limit(5) \