email template fix

This commit is contained in:
Igor Lobanov 2022-12-01 20:26:53 +01:00
parent c329b7dd3a
commit 53d3e1ec80
2 changed files with 2 additions and 4 deletions

View File

@ -10,7 +10,7 @@ lang_subject = {
}
async def send_auth_email(user, token, template="email_confirmation", lang="ru"):
async def send_auth_email(user, token, lang="ru", template="email_confirmation"):
try:
to = "%s <%s>" % (user.name, user.email)
if lang not in ['ru', 'en']:

View File

@ -115,9 +115,7 @@ async def load_shouts_by(_, info, options):
aliased_reaction = aliased(Reaction)
q.outerjoin(aliased_reaction).add_columns(func.max(aliased_reaction.createdAt).label('reacted'))
order_by_desc = options.get('order_by_desc', True)
query_order_by = desc(order_by) if order_by_desc else asc(order_by)
query_order_by = desc(order_by) if options.get('order_by_desc', True) else asc(order_by)
offset = options.get("offset", 0)
limit = options.get("limit", 10)