dont call module
This commit is contained in:
parent
b010aca0a9
commit
3c1f4a8c95
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,6 @@ import os
|
||||||
from datetime import timedelta, datetime
|
from datetime import timedelta, datetime
|
||||||
import gzip
|
import gzip
|
||||||
import random
|
import random
|
||||||
random
|
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db import connection, transaction
|
from django.db import connection, transaction
|
||||||
|
@ -15,6 +14,7 @@ from celery.task import task, periodic_task
|
||||||
import models
|
import models
|
||||||
from text.models import Text
|
from text.models import Text
|
||||||
|
|
||||||
|
|
||||||
@periodic_task(run_every=timedelta(days=1), queue='encoding')
|
@periodic_task(run_every=timedelta(days=1), queue='encoding')
|
||||||
def cronjob(**kwargs):
|
def cronjob(**kwargs):
|
||||||
update_random_sort()
|
update_random_sort()
|
||||||
|
|
Loading…
Reference in a new issue