From af647a86ac49a00dac9f4f4bc0255cfee6cb7945 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 13 Feb 2012 11:20:54 +0530 Subject: [PATCH] add new file --- pandora/user/tasks.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pandora/user/tasks.py diff --git a/pandora/user/tasks.py b/pandora/user/tasks.py new file mode 100644 index 00000000..c9508afc --- /dev/null +++ b/pandora/user/tasks.py @@ -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()