From f489f5f6c5caf6f7befca4146f2b03a9e3eccbf2 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Thu, 25 Jun 2020 03:42:05 +0200 Subject: [PATCH] autoversion css --- WebHost/__init__.py | 4 +++- WebHost/requirements.txt | 3 ++- WebHost/static/static.css | 4 ++-- WebHost/templates/tracker.html | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/WebHost/__init__.py b/WebHost/__init__.py index a5141f5b..58a79301 100644 --- a/WebHost/__init__.py +++ b/WebHost/__init__.py @@ -12,6 +12,7 @@ import zlib from pony.flask import Pony from flask import Flask, request, redirect, url_for, render_template, Response, session, abort, flash from flask_caching import Cache +from flaskext.autoversion import Autoversion from .models import * @@ -39,7 +40,8 @@ app.config["PONY"] = { 'create_db': True } app.config["CACHE_TYPE"] = "simple" - +app.autoversion = True +av = Autoversion(app) cache = Cache(app) # this local cache is risky business if app hosting is done with subprocesses as it will not sync. Waitress is fine though diff --git a/WebHost/requirements.txt b/WebHost/requirements.txt index cb83251b..5f284d5c 100644 --- a/WebHost/requirements.txt +++ b/WebHost/requirements.txt @@ -1,4 +1,5 @@ flask>=1.1.2 pony>=0.7.13 waitress>=1.4.4 -flask-caching>=1.9.0 \ No newline at end of file +flask-caching>=1.9.0 +Flask-Autoversion>=0.1.0 \ No newline at end of file diff --git a/WebHost/static/static.css b/WebHost/static/static.css index 1be0b582..2f22811e 100644 --- a/WebHost/static/static.css +++ b/WebHost/static/static.css @@ -1,5 +1,5 @@ table.dataTable.table-sm > thead > tr > th :not(.sorting_disabled) { - padding-right: 0; + padding: 1px; } .dataTable > thead > tr > th[class*="sort"]:before, @@ -7,6 +7,6 @@ table.dataTable.table-sm > thead > tr > th :not(.sorting_disabled) { content: "" !important; } -table.dataTable.table-sm > thead > tr > th { +th { padding: 1px !important; } \ No newline at end of file diff --git a/WebHost/templates/tracker.html b/WebHost/templates/tracker.html index 3c62d365..341454b6 100644 --- a/WebHost/templates/tracker.html +++ b/WebHost/templates/tracker.html @@ -39,7 +39,7 @@ setInterval(update, 30000); }) - + {% endblock %} {% block body %}