mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
16 lines
404 B
Python
16 lines
404 B
Python
![]() |
from celery.task import Task
|
||
|
from apps.profile.models import Profile
|
||
|
|
||
|
|
||
|
class EmailNewUser(Task):
|
||
|
|
||
|
def run(self, user_id):
|
||
|
user_profile = Profile.objects.get(user__pk=user_id)
|
||
|
user_profile.send_new_user_email()
|
||
|
|
||
|
class EmailNewPremium(Task):
|
||
|
|
||
|
def run(self, user_id):
|
||
|
user_profile = Profile.objects.get(user__pk=user_id)
|
||
|
user_profile.send_new_premium_email()
|