Skip to content
Snippets Groups Projects
Commit 708050fe authored by Krzysztof Leśniak's avatar Krzysztof Leśniak
Browse files

fixup! Fill notification cache for follows in the indexer

parent da3c7a38
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !863. Comments created here will be created in the context of that merge request.
......@@ -284,6 +284,9 @@ class Follow(DbAdapterHolder):
def flush_notifications(cls):
n = len(cls.follow_notifications_to_flush)
if n > 0:
# With clause is inlined, modified call to reptracker_endpoints.get_account_reputation.
# Reputation is multiplied by 7.5 rather than 9 to bring the max value to 100 rather than 115.
# In case of reputation being 0, the score is set to 25 rather than 0.
sql = f"""
WITH log_account_rep AS
(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment