def _cmd_load_store(self): from apps.production.models import StoreProduction from apps.store.models import Store StoreProduction.objects.all().delete() new_objs = make_new_store_objs(Store, StoreProduction) StoreProduction.objects.bulk_create(new_objs) StoreProduction.make_random_tag_one()
def run(signum): logger = Logger('store_refresh_tag_one_goods.log') StoreProduction.make_random_tag_one() logger.write("refresh complete!") logger.close()