custom url and also asset import fix

This commit is contained in:
cube
2026-05-30 02:19:36 +01:00
parent 15ee5ec622
commit f7cede9033
2 changed files with 3 additions and 3 deletions

View File

@@ -964,8 +964,8 @@ def assets():
file.save(os.path.join(current_app.config["MISC_UPLOAD_FOLDER"], fname+str(i)+"."+ftype))
if "images_zip" in request.files:
file = request.files["images_zip"]
with zipfile.ZipFile(file, "r") as zipf:
images_file = request.files["images_zip"]
with zipfile.ZipFile(images_file, "r") as zipf:
for f in zipf.namelist():
zipf.extract(f)

View File

@@ -46,7 +46,7 @@
{% if pins %}
<div class="heading">Pinned</div>
{% for pin in pins %}
<div class="navitem">> {% if pin[22] %}<a href="{{ url_for('home.page', mid=pin[22]) }}">View Page</a>{%else%}<a href="{{ url_for('home.page', mid=pin[0]) }}">{{ pin[3]|safe }}</a>{%endif%}</div>
<div class="navitem">> {% if pin[22] %}<a href="{{ url_for('home.page', mid=pin[22]) }}">{{ pin[3]|safe }}</a>{%else%}<a href="{{ url_for('home.page', mid=pin[0]) }}">{{ pin[3]|safe }}</a>{%endif%}</div>
{% endfor %}
{% endif %}