Skip to content

Commit 263b952

Browse files
committed
fix double imports again
1 parent f624258 commit 263b952

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

addons/base/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ def emit_notification(self, target, user, payload, *args, **kwargs):
622622
'move': NotificationType.Type.ADDON_FILE_MOVED,
623623
'delete': NotificationType.Type.FILE_REMOVED,
624624
'update': NotificationType.Type.FILE_UPDATED,
625+
'create_folder': NotificationType.Type.FOLDER_CREATED,
625626
}
626627
notification_type = notification_types[payload.get('action')]
627628
if notification_type not in notification_types.values():

website/settings/defaults.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,6 @@ class CeleryConfig:
553553
'osf.management.commands.registration_schema_metrics',
554554
'website.mailchimp_utils',
555555
'website.notifications.tasks',
556-
'website.notifications.tasks.send_users_digest_email',
557-
'website.notifications.tasks.send_moderators_digest_email',
558556
'website.archiver.tasks',
559557
'website.identifiers.tasks',
560558
'website.search.search',
@@ -627,12 +625,12 @@ class CeleryConfig:
627625
'kwargs': {'dry_run': False},
628626
},
629627
'send_moderators_digest_email': {
630-
'task': 'website.notifications.tasks',
628+
'task': 'website.notifications.tasks.send_moderators_digest_email',
631629
'schedule': crontab(minute=0, hour=5), # Daily 12 a.m
632630
'kwargs': {'dry_run': False},
633631
},
634632
'send_users_digest_email': {
635-
'task': 'website.notifications.tasks',
633+
'task': 'website.notifications.tasks.send_users_digest_email',
636634
'schedule': crontab(minute=0, hour=5), # Daily 12 a.m
637635
'kwargs': {'dry_run': False},
638636
},

0 commit comments

Comments
 (0)