NewsBlur-viq/apps/notifications/tasks.py

11 lines
309 B
Python
Raw Normal View History

from django.contrib.auth.models import User
2024-04-24 09:50:42 -04:00
from apps.notifications.models import MUserFeedNotification
2024-04-24 09:50:42 -04:00
from newsblur_web.celeryapp import app
from utils import log as logging
2020-11-13 13:26:25 -05:00
@app.task()
2020-11-13 12:14:37 -05:00
def QueueNotifications(feed_id, new_stories):
MUserFeedNotification.push_feed_notifications(feed_id, new_stories)