mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 13:35:58 +00:00
10 lines
247 B
Python
10 lines
247 B
Python
![]() |
from celery.task import Task
|
||
|
from django.contrib.auth.models import User
|
||
|
|
||
|
|
||
|
class IndexSubscriptionsForSearch(Task):
|
||
|
|
||
|
def run(self, user_id):
|
||
|
user = User.objects.get(pk=user_id)
|
||
|
user.profile.index_subscriptions_for_search()
|