From 60b02f861856f04e7e8e494f0977ffad93f37df9 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Sun, 24 Jan 2021 17:05:12 +0100 Subject: [PATCH] Rank images higher. --- app/util.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/util.py b/app/util.py index 35f75e5..39a391a 100644 --- a/app/util.py +++ b/app/util.py @@ -30,8 +30,11 @@ def uprank(l, users): # the earlier in the list a user comes, the more highly ranked it is. score = users.index(n.user) - len(users) - 1 if n.mediatype != 'text/plain': - # downrank images as wherever a user has both text and image the text probably needs to go first. - score += 0.01 + # try *uprankin* images as + # previously it was downranking with the idea that whenever user has both + # text and image, the text probably needs to go first. But I think visuals + # add a lot if used well. + score -= 0.01 return score return sorted(l, key=score)