src/hdalab/tasks.py
author rougeronj
Thu, 24 Sep 2015 13:28:38 +0200
changeset 647 37220b1a35e2
parent 493 09aa28e25840
permissions -rw-r--r--
adapts to new renkan client version (dont have to do a project.set because it is done in the dataloader) adapts the templates to hide new unwanted changes in hda renkan client

# -*- 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)