forked from 0x2620/pandora
add new file
This commit is contained in:
parent
449cb09595
commit
af647a86ac
1 changed files with 17 additions and 0 deletions
17
pandora/user/tasks.py
Normal file
17
pandora/user/tasks.py
Normal 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()
|
Loading…
Reference in a new issue