mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
12 lines
314 B
Python
12 lines
314 B
Python
from newsblur_web.celeryapp import app
|
|
from utils import log as logging
|
|
|
|
|
|
@app.task()
|
|
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()
|