From dbdfe47015c01db592645c389d8b912b73648951 Mon Sep 17 00:00:00 2001 From: paulmwatson Date: Thu, 15 Aug 2024 11:34:49 +0200 Subject: [PATCH] Do not try to show file bytes size if not available --- docker-compose.yml | 2 +- pmg/templates/bills/detail.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 997fa597..1081004e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,7 +23,7 @@ services: volumes: - .:/app environment: - - FLASK_DEBUG_CACHE=true + - FLASK_DEBUG_CACHE=false - REDIS_URL=redis://redis:6379/0 - SQLALCHEMY_DATABASE_URI=postgresql://pmg:pmg@postgres/pmg?client_encoding=utf8 - ES_SERVER=http://elastic:9200 diff --git a/pmg/templates/bills/detail.html b/pmg/templates/bills/detail.html index 40b2135d..1c3c973f 100644 --- a/pmg/templates/bills/detail.html +++ b/pmg/templates/bills/detail.html @@ -152,13 +152,13 @@

Bill Text

{% for version in bill.versions %}
{% if version.file.file_mime == "application/pdf" %}
- +
{% else %}

A preview of this file is not available. Please download it instead.