src/hdalab/tasks.py
author ymh <ymh.work@gmail.com>
Tue, 05 Apr 2016 19:52:17 +0200
changeset 680 541cd2de37d8
parent 493 09aa28e25840
permissions -rw-r--r--
Added tag V03.02 for changeset 1911af6da33f

# -*- coding: utf-8 -*-
'''
Created on Mar 7, 2015

@author: ymh
'''
from __future__ import absolute_import

from celery import shared_task

from hdalab.models.renkan import HdalabRenkan
from hdalab.services import renkan_capture_preview


@shared_task
def capture_preview(rk_id):
    
    hdalab_renkan = HdalabRenkan.objects.filter(renkan__rk_id=rk_id).select_related().get()
    
    renkan_capture_preview(hdalab_renkan)