add new file

This commit is contained in:
j 2012-02-13 11:20:54 +05:30
parent 449cb09595
commit af647a86ac

17
pandora/user/tasks.py Normal file
View file

@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
import os
from datetime import timedelta, datetime
import gzip
from django.conf import settings
from celery.task import task
import models
@task(ignore_resulsts=True, queue='default')
def parse_data(key):
session_data = models.SessionData.objects.get(session_key=key)
session_data.parse_data()