Author SHA1 Message Date
Sweetbread af98fd86cc Update info
Docker Build and Push / build-and-push (push) Failing after 1m20s
2026-11-01 01:17:24 +03:00
Sweetbread 2fa7c9fe22 Update pypugjs 2026-11-01 01:17:24 +03:00
5 changed files with 6 additions and 26 deletions

No files matched your search

-2
View File
@@ -1,5 +1,4 @@
from modules import locale
from modules import domains
from blueprints.root import bp as root_bp
from blueprints.risdeveau import bp as rdv_bp
@@ -21,7 +20,6 @@ app.jinja_env.add_extension('pypugjs.ext.jinja.PyPugJSExtension')
app.before_request(locale.before_request)
app.context_processor(locale.inject_translations)
app.context_processor(domain.inject_get_domain)
app.register_blueprint(root_bp)
app.register_blueprint(rdv_bp)
@@ -75,6 +75,8 @@ table, tbody {
background-color: color.change(theme.$surface1, $alpha:75%);
}
.green { color: theme.$green; }
th {
text-align: unset;
}
+3 -3
View File
@@ -29,7 +29,7 @@
table
tr
td Programmer
td 2.5/4yr.
tr
td 3/4yr.
tr.green
td Translator
td 2.5/3yr.
td 3/3yr.
-20
View File
@@ -1,20 +0,0 @@
from flask import g, request
def get_curr_mode() -> str:
match request.headers['host']:
case "lair.moe": return "clearnet"
case "ygg.lair.moe": return "ygg-dns"
case "lair.ygg": return "ygg-alfis"
case "lair.ygg.at": return "ygg-alfis-at"
else: return "ip"
def inject_get_domain():
def get_domain(domain: str, mode=get_cur_mode(): str) -> str:
match mode:
case "clearnet": return f"{domain}.lair.moe"
case "ygg-dns": return f"{domain}.ygg.lair.moe"
case "ygg-alfis": return f"{domain}.lair.ygg"
case "ygg-alfis-at": return f"{domain}.lair.ygg.at"
else: return ""
return {':': get_domain}
+1 -1
View File
@@ -5,4 +5,4 @@ requests
APScheduler
musicbrainzngs
python-magic
git+https://github.com/VerySweetBread/pypugjs
pypugjs