Commit 2c6eb3d0 authored by Elger Jonker's avatar Elger Jonker

added some documentation


Former-commit-id: abbce74c
parent e54ae8dc
......@@ -8,7 +8,8 @@ log = logging.getLogger(__name__)
class Command(ScannerTaskCommand):
"""Remove all organization and url ratings, then rebuild them from scratch."""
"""Remove all organization and url ratings, then rebuild them from scratch. Used whan ratings changed and impact
history. Also creates stats for over a year."""
help = __doc__
......
......@@ -8,7 +8,7 @@ log = logging.getLogger(__name__)
class Command(ScannerTaskCommand):
"""Remove all organization and url ratings, then rebuild them from scratch."""
"""Rebuild url ratings (fast) and add a report for today if things changed. Creates stats for two days."""
help = __doc__
......
......@@ -159,7 +159,8 @@ def rebuild_organization_ratings(organizations: List):
default_organization_rating(organizations=[organization])
# and then rebuild the ratings per moment. This is not really fast.
# todo: reduce the number of significants moments to be weekly in the past, which will safe a lot of time
# done: reduce the number of significants moments to be weekly in the past, which will safe a lot of time
# not needed: the rebuild already takes a lot of time, so why bother with that extra hour or so.
moments, happenings = significant_moments(organizations=[organization])
for moment in moments:
rate_organization_on_moment(organization, moment)
......
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