From b8706472740a8d010ec205c538e660320d299650 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Tue, 29 Dec 2020 20:55:45 +0100 Subject: [PATCH] Quick fix --- app/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/util.py b/app/util.py index c45b804..e1f6ee0 100644 --- a/app/util.py +++ b/app/util.py @@ -17,9 +17,9 @@ from functools import lru_cache parser = DateDataParser(languages=['en']) -def rank(l, attribute): +def rank(l, user): # hack hack - return sorted(l, key=lambda x: x.attribute) + return sorted(l, key=lambda x: x.user) def uprank(l, user): # hack hack