mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
12 lines
322 B
Python
12 lines
322 B
Python
from newsblur.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()
|
|
|