Skip to content

Commit

Permalink
tidy: replace policing with helping
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Sep 9, 2024
1 parent a4b29c8 commit a075422
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion osf/metrics/reporters/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def report(
def run_and_record_for_month(self, report_yearmonth: YearMonth) -> None:
reports = self.report(report_yearmonth)
for report in reports:
assert str(report.report_yearmonth) == str(report_yearmonth)
report.report_yearmonth = report_yearmonth
report.save()


Expand Down
1 change: 0 additions & 1 deletion osf/metrics/reporters/institutional_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class _InstiUserReportHelper:
def __post_init__(self):
_affiliation = self.user.get_institution_affiliation(self.institution._id)
self.report = InstitutionalUserReport(
report_yearmonth=self.yearmonth,
institution_id=self.institution._id,
user_id=self.user._id,
user_name=self.user.fullname,
Expand Down
1 change: 0 additions & 1 deletion osf/metrics/reporters/spam_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def report(self, report_yearmonth):
next_month = report_yearmonth.next_month()

report = SpamSummaryReport(
report_yearmonth=str(report_yearmonth),
# Node Log entries
node_confirmed_spam=NodeLog.objects.filter(
action=NodeLog.CONFIRM_SPAM,
Expand Down

0 comments on commit a075422

Please sign in to comment.