autoversion css

This commit is contained in:
Fabian Dill 2020-06-25 03:42:05 +02:00
parent 161abbe874
commit f489f5f6c5
4 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -1,4 +1,5 @@
flask>=1.1.2
pony>=0.7.13
waitress>=1.4.4
flask-caching>=1.9.0
flask-caching>=1.9.0
Flask-Autoversion>=0.1.0

View File

@ -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;
}

View File

@ -39,7 +39,7 @@
setInterval(update, 30000);
})
</script>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename="static.css") }}"/>
<link rel="stylesheet" type="text/css" href="{{ static_autoversion("static.css") }}"/>
{% endblock %}
{% block body %}
<input id="searchbox" class="form-control" type="text" placeholder="Search">