1
0
Fork 0

fix color option in docker

This commit is contained in:
Nick Sweeting 2021-02-16 01:26:26 -05:00
parent 4eac9d0ec1
commit ae43d35e65
2 changed files with 7 additions and 4 deletions

View file

@ -217,8 +217,10 @@ class PublicIndexView(ListView):
query = self.request.GET.get('q')
if query:
qs = qs.filter(Q(title__icontains=query) | Q(url__icontains=query) | Q(timestamp__icontains=query) | Q(tags__name__icontains=query))
for snapshot in qs:
snapshot.icons = snapshot_icons(snapshot)
# lazy load snapshot icons, otherwise it will load icons for entire index at once
snapshot.icons = lambda: snapshot_icons(snapshot)
return qs
def get(self, *args, **kwargs):

View file

@ -19,8 +19,9 @@ services:
ports:
- 8000:8000
environment:
- USE_COLOR=True
- SHOW_PROGRESS=False
- ALLOWED_HOSTS=* # add any config options you want as env vars
- MEDIA_MAX_SIZE=750m
# - SHOW_PROGRESS=False
# - SEARCH_BACKEND_ENGINE=sonic # uncomment these if you enable sonic below
# - SEARCH_BACKEND_HOST_NAME=sonic
# - SEARCH_BACKEND_PASSWORD=SecretPassword