16 lines
350 B
Python
16 lines
350 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from django.core.management.base import BaseCommand
|
|
|
|
import movie.models
|
|
|
|
class Command(BaseCommand):
|
|
"""
|
|
load new ids into cache
|
|
"""
|
|
help = 'load ids from sites that dont support search.'
|
|
args = ''
|
|
|
|
def handle(self, **options):
|
|
timeout = 30*24*60*60
|
|
movie.models.get_new_ids(timeout)
|