Simple line reorder
This commit is contained in:
parent
32ec34435d
commit
b0a3830c4f
@ -26,14 +26,15 @@ async def cmd_application(app, msg):
|
|||||||
return
|
return
|
||||||
|
|
||||||
application = col_applications.find_one({"user": holo_user.id})
|
application = col_applications.find_one({"user": holo_user.id})
|
||||||
application_content = []
|
|
||||||
i = 1
|
|
||||||
|
|
||||||
if application is None:
|
if application is None:
|
||||||
logWrite(f"User {msg.from_user.id} requested application of {holo_user.id} but user does not exists")
|
logWrite(f"User {msg.from_user.id} requested application of {holo_user.id} but user does not exists")
|
||||||
await msg.reply_text(locale("user_invalid", "message"), quote=should_quote(msg))
|
await msg.reply_text(locale("user_invalid", "message"), quote=should_quote(msg))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
application_content = []
|
||||||
|
i = 1
|
||||||
|
|
||||||
for question in application['application']:
|
for question in application['application']:
|
||||||
|
|
||||||
if i == 2:
|
if i == 2:
|
||||||
@ -51,6 +52,7 @@ async def cmd_application(app, msg):
|
|||||||
|
|
||||||
application_status = locale("application_status_accepted", "message").format((await app.get_users(application["admin"])).first_name, application["date"].strftime("%d.%m.%Y, %H:%M"))
|
application_status = locale("application_status_accepted", "message").format((await app.get_users(application["admin"])).first_name, application["date"].strftime("%d.%m.%Y, %H:%M"))
|
||||||
|
|
||||||
|
logWrite(f"User {msg.from_user.id} requested application of {holo_user.id}")
|
||||||
await msg.reply_text(locale("contact", "message").format(holo_user.id, "\n".join(application_content), application_status), parse_mode=ParseMode.MARKDOWN, quote=should_quote(msg))
|
await msg.reply_text(locale("contact", "message").format(holo_user.id, "\n".join(application_content), application_status), parse_mode=ParseMode.MARKDOWN, quote=should_quote(msg))
|
||||||
|
|
||||||
# if (path.exists(f"{configGet('data', 'locations')}{sep}users{sep}{msg.command[1]}.json") and jsonLoad(f"{configGet('data', 'locations')}{sep}users{sep}{msg.command[1]}.json")["approved"]):
|
# if (path.exists(f"{configGet('data', 'locations')}{sep}users{sep}{msg.command[1]}.json") and jsonLoad(f"{configGet('data', 'locations')}{sep}users{sep}{msg.command[1]}.json")["approved"]):
|
||||||
|
Reference in New Issue
Block a user