fix snapshot icon caching and ordering

This commit is contained in:
Nick Sweeting 2021-04-01 02:22:15 -04:00
parent fc5d99b4b4
commit 59d5423483
3 changed files with 6 additions and 6 deletions

View file

@ -116,7 +116,7 @@ def render_django_template(template: str, context: Mapping[str, str]) -> str:
def snapshot_icons(snapshot) -> str:
cache_key = f'{str(snapshot.id)[:12]}-{(snapshot.updated or snapshot.added).timestamp()}-snapshot-icons'
cache_key = f'{snapshot.id}-{(snapshot.updated or snapshot.added).timestamp()}-snapshot-icons'
def calc_snapshot_icons():
from core.models import EXTRACTORS