view accounts/tasks.py @ 1154:4da4e32b314c

Do not restrict oEmbed support to just video. This will allow us to embed stuff from SoundClound and ReverbNation.
author Brian Neal <bgneal@gmail.com>
date Tue, 27 Dec 2016 10:21:37 -0600
parents aeafbf3ecebf
children
line wrap: on
line source
"""
Celery tasks for the accounts application.

"""
from __future__ import absolute_import

from celery import shared_task

from accounts.stats import update_user_stats


@shared_task
def user_stats_task(user_id):
    """
    Run the update_user_stats() function on a new task.

    """
    update_user_stats(user_id)