Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/reports/bin/updateDigests.py

Issue 8625042: Reports - user usefullness (Closed)
Patch Set: Reports - user usefulness Created Oct. 23, 2012, 2:15 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sitescripts/reports/bin/updateDigests.py
===================================================================
--- a/sitescripts/reports/bin/updateDigests.py
+++ b/sitescripts/reports/bin/updateDigests.py
@@ -8,7 +8,7 @@
from time import time
from email.utils import parseaddr
from sitescripts.utils import get_config, get_template, setupStderr
-from sitescripts.reports.utils import getReports, getReportSubscriptions, calculateReportSecret, getDigestPath
+from sitescripts.reports.utils import getReports, getReportSubscriptions, calculateReportSecret, getDigestPath, getUserUsefulnessScore
import sitescripts.subscriptions.subscriptionParser as subscriptionParser
def updateDigests(dir):
@@ -38,6 +38,7 @@
'type': dbreport['type'],
'subscriptions': [],
'contact': dbreport['contact'],
+ 'score': getUserUsefulnessScore(dbreport['contact']),
'hasscreenshot': dbreport['hasscreenshot'],
'knownIssues': dbreport['knownissues'],
'time': dbreport['ctime'],

Powered by Google App Engine
This is Rietveld