email template fix
This commit is contained in:
parent
c329b7dd3a
commit
53d3e1ec80
|
@ -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']:
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user