Commit e785e1d1 authored by Robert's avatar Robert

Revised group score calculation

parent 19721802
Pipeline #1226 failed with stage
in 55 seconds
import datetime
from math import log
import django.conf
import django.utils.timezone
......@@ -57,5 +58,6 @@ class Group:
for qs in (group_versions, group_comments, group_conversations):
for group_authored in qs:
ps += (group_authored.time_created - THRESHOLD).days
s += ps * num_gestalten
if num_gestalten > 0:
s += ps * log(num_gestalten) * (10 if only_public else 1)
return s
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment