aboutsummaryrefslogtreecommitdiffstats
path: root/tests/_autospec.py
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2021-03-13 17:58:25 +0100
committerGravatar kwzrd <[email protected]>2021-03-13 18:41:17 +0100
commit81e48983c7408e6a8dd4c6131eb5633be7c53825 (patch)
tree2cddaca593a6727de34735fd56a32dd4e6c0b507 /tests/_autospec.py
parentBranding: extract duration string in helper function (diff)
Branding: cache all available events
This is a prequel to adding a calendar command. To avoid re-querying the branding repo on command invocation, event information will be cached whenever we make requests. The command can then simply get an up-to-date event schedule from the cache, with the option of forcing an update via the 'populate_cache_events' function. Since we cannot easily serialize entire 'Event' instances, we simply store what's needed - the event name, and its duration. The author has verified that the cache maintains order; in this case chronological order based on event start date.
Diffstat (limited to 'tests/_autospec.py')
0 files changed, 0 insertions, 0 deletions