critical typos
This commit is contained in:
parent
382d06961b
commit
0dc7c2f786
4 changed files with 6 additions and 5 deletions
|
|
@ -14,7 +14,7 @@ from sqlalchemy import select
|
||||||
from werkzeug.routing import BaseConverter
|
from werkzeug.routing import BaseConverter
|
||||||
from sassutils.wsgi import SassMiddleware
|
from sassutils.wsgi import SassMiddleware
|
||||||
|
|
||||||
__version__ = '0.3.2'
|
__version__ = '0.3.3'
|
||||||
|
|
||||||
APP_BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
APP_BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
{% if feed_type == 'guild' %}
|
{% if feed_type == 'guild' %}
|
||||||
{% from "macros/nav.html" import nav_guild with context %}
|
{% from "macros/nav.html" import nav_guild with context %}
|
||||||
{{ nav_topic(topic) }}
|
{{ nav_guild(topic) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<aside class="card">
|
<aside class="card">
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li><i class="icon icon-info" style="font-size:inherit"></i> {{ gu.description }}</li>
|
<li><i class="icon icon-info" style="font-size:inherit"></i> {{ gu.description }}</li>
|
||||||
<li>
|
<li>
|
||||||
<strong>{{ topic.posts | count }}</strong> posts -
|
<strong>{{ gu.posts | count }}</strong> posts -
|
||||||
<strong>-</strong> subscribers
|
<strong>-</strong> subscribers
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
<aside class="card">
|
<aside class="card">
|
||||||
<h3>About <a href="{{ user.url() }}">{{ user.handle() }}</a></h3>
|
<h3>About <a href="{{ user.url() }}">{{ user.handle() }}</a></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>{# user.biography #}</li>
|
{# <li> TODO user.biography </li> #}
|
||||||
</ul>
|
</ul>
|
||||||
</aside>
|
</aside>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
import datetime
|
import datetime
|
||||||
from flask import Blueprint, abort, flash, redirect, render_template, request
|
from flask import Blueprint, abort, flash, redirect, render_template, request
|
||||||
from flask_login import current_user, login_required
|
from flask_login import current_user, login_required
|
||||||
|
from sqlalchemy import select
|
||||||
|
|
||||||
from ..models import Post, db
|
from ..models import Post, db
|
||||||
|
|
||||||
|
|
@ -13,7 +14,7 @@ bp = Blueprint('edit', __name__)
|
||||||
@bp.route('/edit/post/<b32l:id>', methods=['GET', 'POST'])
|
@bp.route('/edit/post/<b32l:id>', methods=['GET', 'POST'])
|
||||||
@login_required
|
@login_required
|
||||||
def edit_post(id):
|
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:
|
if p is None:
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue