Skip to content

Commit

Permalink
[polish] fix generate_pinfl
Browse files Browse the repository at this point in the history
  • Loading branch information
co-andrey-l committed Apr 27, 2024
1 parent 949965d commit 0fe6d7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ def generate_pinfl(update, context):
random.randint(1900, 2005), random.randint(1, 12), random.randint(1, 28)
)
pinfl = generator.generate_pinfl(gender, birth_date)
formatted_birth_date = birth_date.strftime("%d %B\(%m\) %Y")
update.message.reply_text(
f"```{pinfl}```\nДата рожденья: {birth_date}\nГендер: #{gender}",
f"```{pinfl}```\nДата рожденья: {formatted_birth_date}\nГендер: \#{gender}",
parse_mode="MarkdownV2",
)

Expand Down

0 comments on commit 0fe6d7b

Please sign in to comment.