NewsBlur-viq/apps/analyzer/tasks.py

13 lines
322 B
Python
Raw Normal View History

2020-11-13 13:26:25 -05:00
from newsblur.celeryapp import app
2017-01-05 18:26:50 -08:00
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 EmailPopularityQuery(pk):
from apps.analyzer.models import MPopularityQuery
query = MPopularityQuery.objects.get(pk=pk)
logging.debug(" -> ~BB~FCRunning popularity query: ~SB%s" % query)
query.send_email()
2017-01-05 18:26:50 -08:00