critical typos

This commit is contained in:
Yusur 2025-06-14 12:15:24 +02:00
parent 382d06961b
commit 0dc7c2f786
4 changed files with 6 additions and 5 deletions

View file

@ -14,7 +14,7 @@ from sqlalchemy import select
from werkzeug.routing import BaseConverter
from sassutils.wsgi import SassMiddleware
__version__ = '0.3.2'
__version__ = '0.3.3'
APP_BASE_DIR = os.path.dirname(os.path.dirname(__file__))

View file

@ -22,7 +22,7 @@
{% if feed_type == 'guild' %}
{% from "macros/nav.html" import nav_guild with context %}
{{ nav_topic(topic) }}
{{ nav_guild(topic) }}
{% endif %}
<aside class="card">

View file

@ -5,7 +5,7 @@
<ul>
<li><i class="icon icon-info" style="font-size:inherit"></i> {{ gu.description }}</li>
<li>
<strong>{{ topic.posts | count }}</strong> posts -
<strong>{{ gu.posts | count }}</strong> posts -
<strong>-</strong> subscribers
</li>
</ul>
@ -16,7 +16,7 @@
<aside class="card">
<h3>About <a href="{{ user.url() }}">{{ user.handle() }}</a></h3>
<ul>
<li>{# user.biography #}</li>
{# <li> TODO user.biography </li> #}
</ul>
</aside>
{% endmacro %}

View file

@ -4,6 +4,7 @@
import datetime
from flask import Blueprint, abort, flash, redirect, render_template, request
from flask_login import current_user, login_required
from sqlalchemy import select
from ..models import Post, db
@ -13,7 +14,7 @@ bp = Blueprint('edit', __name__)
@bp.route('/edit/post/<b32l:id>', methods=['GET', 'POST'])
@login_required
def edit_post(id):
p: Post | None = db.session.execute(db.select(Post).where(Post.id == id)).scalar()
p: Post | None = db.session.execute(select(Post).where(Post.id == id)).scalar()
if p is None:
abort(404)