Skip to content

Commit 799bedb

Browse files
committed
convert to use review_nt
1 parent 38a07fe commit 799bedb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/remove_after_use/populate_notification_subscriptions_user_global_reviews.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ def populate_notification_subscriptions_user_global_reviews(per_last_years: int
2222
if per_last_years:
2323
from_date = timezone.now() - relativedelta(years=per_last_years)
2424
user_qs = OSFUser.objects.filter(date_last_login__gte=from_date).exclude(
25-
subscriptions__notification_type__name=NotificationType.Type.REVIEWS_SUBMISSION_STATUS.instance
25+
subscriptions__notification_type__name=review_nt.instance
2626
).distinct('id')
2727
else:
2828
user_qs = OSFUser.objects.exclude(
29-
subscriptions__notification_type__name=NotificationType.Type.REVIEWS_SUBMISSION_STATUS.instance
29+
subscriptions__notification_type__name=review_nt.instance
3030
).distinct('id')
3131

3232
items_to_create = []

0 commit comments

Comments
 (0)