Stefan.petrea has uploaded a new change for review. https://gerrit.wikimedia.org/r/87619
Change subject: Implementing Threshold metric ...................................................................... Implementing Threshold metric Analytics card 699.1 Change-Id: I90e9efba482d404a89a4c090113f0882dfdd2067 --- A wikimetrics/metrics/threshold.py 1 file changed, 26 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/analytics/wikimetrics refs/changes/19/87619/1 diff --git a/wikimetrics/metrics/threshold.py b/wikimetrics/metrics/threshold.py new file mode 100644 index 0000000..cbf332b --- /dev/null +++ b/wikimetrics/metrics/threshold.py @@ -0,0 +1,26 @@ +import datetime +import calendar +from sqlalchemy import func, case, Integer +from sqlalchemy.sql.expression import label, between, and_, or_ + +from wikimetrics.models import Page, Revision, MediawikiUser +from wikimetrics.utils import thirty_days_ago, today, CENSORED +from metric import Survivors +from form_fields import CommaSeparatedIntegerListField, BetterDateTimeField +from wtforms.validators import Required +from wtforms import BooleanField, IntegerField + + +__all__ = ['Threshold'] + + +class Threshold(Survivors): + """ + This metric counts users who pass the threshold . + """ + def __init__(self): + super( FileInfo, self ).__init__() + self.id = 'threshold' + self.label = 'Threshold' + + -- To view, visit https://gerrit.wikimedia.org/r/87619 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I90e9efba482d404a89a4c090113f0882dfdd2067 Gerrit-PatchSet: 1 Gerrit-Project: analytics/wikimetrics Gerrit-Branch: master Gerrit-Owner: Stefan.petrea <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
