diff --git a/app/__init__.py b/app/__init__.py index 60ceae25..4d171758 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -135,8 +135,7 @@ from .utils import clear_notifications, is_safe_url, create_session @app.before_request def check_for_notifications(): - if current_user.is_authenticated: - clear_notifications(request.path) + clear_notifications(request.path) @app.errorhandler(404) diff --git a/app/blueprints/thumbnails/__init__.py b/app/blueprints/thumbnails/__init__.py index aa260e08..6cfc3cbe 100644 --- a/app/blueprints/thumbnails/__init__.py +++ b/app/blueprints/thumbnails/__init__.py @@ -98,9 +98,8 @@ def make_thumbnail(img, level): mkdir(output_dir) cache_filepath = os.path.join(output_dir, img) - source_filepath = find_source_file(img) - if not os.path.isfile(cache_filepath): + source_filepath = find_source_file(img) resize_and_crop(source_filepath, cache_filepath, (w, h)) res = send_file(cache_filepath) diff --git a/app/templates/donate/index.html b/app/templates/donate/index.html index 425206de..e9155aa0 100644 --- a/app/templates/donate/index.html +++ b/app/templates/donate/index.html @@ -41,7 +41,7 @@ {{ _("View package") }} - + {{ _("Donate") }} diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index 3969a938..f584dde8 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -150,8 +150,7 @@ {% endif %} {% for warning in package.content_warnings %} - + {{ warning.title }} @@ -425,7 +424,7 @@ {% if package.donate_url_actual %}

{{ _("Like this package? Help support its development by making a donation", display_name=package.author.display_name) }}

- + {{ _("Donate now") }} diff --git a/app/templates/users/profile.html b/app/templates/users/profile.html index c468faff..48365eda 100644 --- a/app/templates/users/profile.html +++ b/app/templates/users/profile.html @@ -89,7 +89,7 @@ {% endif %} {% if user.website_url %} - + {{ _("Website") }} @@ -98,7 +98,7 @@ {% endif %} {% if user.donate_url %} - + {{ _("Donate") }}