Quick fixes
This commit is contained in:
parent
c2bd70e905
commit
469a3988e2
3 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ class StartCommand(TelegramCommand):
|
||||||
|
|
||||||
user_add(username, chat_id)
|
user_add(username, chat_id)
|
||||||
|
|
||||||
yield "Welcome to Gear Orders bot.\n\nEdit your orders at {FLASK_URL}\n\nAdd a dom with `/dom_add <username>` or ask a sub to add you."
|
yield f"Welcome to Gear Orders bot.\n\nEdit your orders at {FLASK_URL}\n\nAdd a dom with `/dom_add <username>` or ask a sub to add you."
|
||||||
|
|
||||||
class DomAddCommand(TelegramCommand):
|
class DomAddCommand(TelegramCommand):
|
||||||
command_text = "/dom_add"
|
command_text = "/dom_add"
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ def me():
|
||||||
return jsonify({
|
return jsonify({
|
||||||
"username": user.telegram_username,
|
"username": user.telegram_username,
|
||||||
"telegram_photo_url": user.telegram_photo_url,
|
"telegram_photo_url": user.telegram_photo_url,
|
||||||
"mastodon_server": user.mastodon_server.name,
|
"mastodon_server": user.mastodon_server.name if user.mastodon_server else None,
|
||||||
"mastodon_username": user.mastodon_username,
|
"mastodon_username": user.mastodon_username,
|
||||||
"mastodon_attn_list": user.mastodon_attn_list,
|
"mastodon_attn_list": user.mastodon_attn_list,
|
||||||
"mastodon_post_public": user.mastodon_post_public
|
"mastodon_post_public": user.mastodon_post_public
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<title>Gear Orders Bot</title>
|
<title>Gear Orders Bot</title>
|
||||||
|
|
||||||
{{ vite_entry('src/main.tsx') | safe }}
|
{{ vite_entry('src/main.tsx') }}
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue