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. 29, 2012, 12:35 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
« no previous file with comments | « sitescripts/reports/bin/parseNewReports.py ('k') | sitescripts/reports/schema.sql » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'],
« no previous file with comments | « sitescripts/reports/bin/parseNewReports.py ('k') | sitescripts/reports/schema.sql » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld