mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed dev mode css bug
This commit is contained in:
parent
e27a83bdc9
commit
6acab324db
@ -5,7 +5,7 @@ author = {
|
|||||||
"email":"maloja@krateng.dev",
|
"email":"maloja@krateng.dev",
|
||||||
"github": "krateng"
|
"github": "krateng"
|
||||||
}
|
}
|
||||||
version = 2,8,2
|
version = 2,8,3
|
||||||
versionstr = ".".join(str(n) for n in version)
|
versionstr = ".".join(str(n) for n in version)
|
||||||
links = {
|
links = {
|
||||||
"pypi":"malojaserver",
|
"pypi":"malojaserver",
|
||||||
|
@ -158,6 +158,7 @@ def static_image(pth):
|
|||||||
@webserver.route("/style.css")
|
@webserver.route("/style.css")
|
||||||
def get_css():
|
def get_css():
|
||||||
response.content_type = 'text/css'
|
response.content_type = 'text/css'
|
||||||
|
global css
|
||||||
if settings.get_settings("DEV_MODE"): css = generate_css()
|
if settings.get_settings("DEV_MODE"): css = generate_css()
|
||||||
return css
|
return css
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user