Typo fixed

This commit is contained in:
Profitroll 2022-10-22 09:45:02 +02:00
parent 83355785b8
commit 42a9335d24

View File

@ -23,7 +23,7 @@ async def cmd_start(app, msg):
if user_stage != 0: if user_stage != 0:
return return
except FileNotFoundError: except FileNotFoundError:
jsonSave(jsonLoad(f"{configGet('data', 'location')}{sep}user_default.json"), f"{configGet('data', 'location')}{sep}users{sep}{msg.from_user.id}.json") jsonSave(jsonLoad(f"{configGet('data', 'locations')}{sep}user_default.json"), f"{configGet('data', 'locations')}{sep}users{sep}{msg.from_user.id}.json")
user_stage = configGet("stage", file=str(msg.from_user.id)) user_stage = configGet("stage", file=str(msg.from_user.id))
configSet("telegram_id", str(msg.from_user.username), file=str(msg.from_user.id)) configSet("telegram_id", str(msg.from_user.username), file=str(msg.from_user.id))
configSet("telegram_name", f"{msg.from_user.first_name} {msg.from_user.last_name}", file=str(msg.from_user.id)) configSet("telegram_name", f"{msg.from_user.first_name} {msg.from_user.last_name}", file=str(msg.from_user.id))
@ -72,7 +72,7 @@ async def confirm_yes(app, msg):
await msg.reply_text(locale("application_sent", "message"), reply_markup=ReplyKeyboardRemove()) await msg.reply_text(locale("application_sent", "message"), reply_markup=ReplyKeyboardRemove())
applications = jsonLoad(f"{configGet('data', 'location')}{sep}applications.json") applications = jsonLoad(f"{configGet('data', 'locations')}{sep}applications.json")
applications[str(msg.from_user.id)] = { applications[str(msg.from_user.id)] = {
"approved": False, "approved": False,
@ -85,7 +85,7 @@ async def confirm_yes(app, msg):
"application": configGet("application", file=str(msg.from_user.id)) "application": configGet("application", file=str(msg.from_user.id))
} }
jsonSave(applications, f"{configGet('data', 'location')}{sep}applications.json") jsonSave(applications, f"{configGet('data', 'locations')}{sep}applications.json")
application_content = [] application_content = []
i = 1 i = 1
@ -121,7 +121,7 @@ async def confirm_no(app, msg):
user_stage = configGet("stage", file=str(msg.from_user.id)) user_stage = configGet("stage", file=str(msg.from_user.id))
if user_stage == 10: if user_stage == 10:
jsonSave(jsonLoad(f"{configGet('data', 'location')}{sep}user_default.json"), f"{configGet('data', 'location')}{sep}users{sep}{msg.from_user.id}.json") jsonSave(jsonLoad(f"{configGet('data', 'locations')}{sep}user_default.json"), f"{configGet('data', 'locations')}{sep}users{sep}{msg.from_user.id}.json")
configSet("telegram_id", str(msg.from_user.username), file=str(msg.from_user.id)) configSet("telegram_id", str(msg.from_user.username), file=str(msg.from_user.id))
configSet("telegram_name", f"{msg.from_user.first_name} {msg.from_user.last_name}", file=str(msg.from_user.id)) configSet("telegram_name", f"{msg.from_user.first_name} {msg.from_user.last_name}", file=str(msg.from_user.id))
configSet("telegram_phone", str(msg.from_user.phone_number), file=str(msg.from_user.id)) configSet("telegram_phone", str(msg.from_user.phone_number), file=str(msg.from_user.id))