def run() -> None: multiverse.rebuild_cache() oracle.init() archetype.preaggregate() person.preaggregate() card.preaggregate() deck.preaggregate() season.preaggregate()
def run(): multiverse.update_cache() oracle.init() ds = deck.load_decks() for d in ds: redis.clear(f'decksite:deck:{d.id}') deck.prime_cache(d) archetype.preaggregate() card.preaggregate() deck.preaggregate_omw() return 'Done'
def run() -> None: multiverse.update_cache() oracle.init() ds = deck.load_decks() for d in ds: redis.clear(f'decksite:deck:{d.id}') deck.prime_cache(d) redis.clear(f'decksite:deck:{d.id}') archetype.preaggregate() person.preaggregate() card.preaggregate() deck.preaggregate_omw() rule.cache_all_rules()
def run() -> None: multiverse.rebuild_cache() oracle.init() ds = deck.load_decks() for d in ds: redis.clear(f'decksite:deck:{d.id}') deck.prime_cache(d) redis.clear(f'decksite:deck:{d.id}') archetype.preaggregate() person.preaggregate() card.preaggregate() deck.preaggregate() season.preaggregate()