mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
13 lines
359 B
Python
13 lines
359 B
Python
from celery import Task
|
|
from utils import log as logging
|
|
|
|
class EmailPopularityQuery(Task):
|
|
|
|
def run(self, 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()
|
|
|