add cron command
This commit is contained in:
parent
9831fa69a9
commit
14eec9e832
3 changed files with 18 additions and 0 deletions
0
lookup/management/__init__.py
Normal file
0
lookup/management/__init__.py
Normal file
0
lookup/management/commands/__init__.py
Normal file
0
lookup/management/commands/__init__.py
Normal file
18
lookup/management/commands/cache_ids.py
Normal file
18
lookup/management/commands/cache_ids.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
"""
|
||||
load new ids into cache
|
||||
"""
|
||||
help = 'load ids from sites that dont support search.'
|
||||
args = ''
|
||||
|
||||
def handle(self, **options):
|
||||
import oxdata.lookup.cache
|
||||
lookup.cache.getIds()
|
||||
|
Loading…
Reference in a new issue