oxdata/oxdata/movie/management/commands/cache_imdb_ids.py
2018-07-03 18:54:06 +02:00

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)