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

Unified Diff: sitescripts/reports/bin/mailDigests.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 | « no previous file | sitescripts/reports/bin/parseNewReports.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/reports/bin/mailDigests.py
===================================================================
--- a/sitescripts/reports/bin/mailDigests.py
+++ b/sitescripts/reports/bin/mailDigests.py
@@ -10,7 +10,7 @@
from email.utils import parseaddr
from sitescripts.utils import get_config, setupStderr
from sitescripts.templateFilters import formatmime
-from sitescripts.reports.utils import mailDigest, getReports, getReportSubscriptions, calculateReportSecret, getDigestId, getDigestSecret
+from sitescripts.reports.utils import mailDigest, getReports, getReportSubscriptions, calculateReportSecret, getDigestId, getDigestSecret, getUserUsefulnessScore
import sitescripts.subscriptions.subscriptionParser as subscriptionParser
def loadSubscriptions():
@@ -141,7 +141,7 @@
elif re.search(r'\S', report['comment']):
weight += 0.5
if report['contact'] != None:
- weight += 0.3
+ weight += getUserUsefulnessScore(report['contact'])
weight += (report['ctime'] - startTime) / (currentTime - startTime) * 0.2
return weight
« no previous file with comments | « no previous file | sitescripts/reports/bin/parseNewReports.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld