Skip to content

Commit 7c3f913

Browse files
committed
v2.0.1 fix month abbrev
1 parent 0e04249 commit 7c3f913

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

bot/telegram_bot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def log_transaction(user_data, update):
464464
# datatime data
465465
current_datetime = dt.datetime.now(timezone)
466466
day = current_datetime.day
467-
month = current_datetime.strftime("%B")
467+
month = current_datetime.strftime("%b")
468468

469469
# tracker data
470470
day_tracker = int(trackers[0])
@@ -485,7 +485,7 @@ def log_transaction(user_data, update):
485485
if day_tracker < day or day == 1:
486486
msg = f"New entry for {day} {month}"
487487
if day == 1:
488-
month = (current_datetime - dt.timedelta(days=1)).strftime("%B")
488+
month = (current_datetime - dt.timedelta(days=1)).strftime("%b")
489489
# update prev day
490490
msg = f"{msg}\nCreating sum for day {day_tracker}"
491491
gs.update_prev_day(sheet_id, month, first_row)
@@ -708,7 +708,7 @@ def cpf(update, context) -> int:
708708
try:
709709
row_data = [income, place, cpf, remarks]
710710
current_datetime = dt.datetime.now(timezone)
711-
month = current_datetime.strftime("%B")
711+
month = current_datetime.strftime("%b")
712712
if gs.update_income(sheet_id, month, row_data):
713713
update.callback_query.message.reply_text("Income has been added!")
714714
else:

release_notes.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,9 @@
3636
- Remove sql functions
3737
- python-telegram-bot library changed to 13.7
3838
- Move services account to environment variable
39-
- Please read the new README for developer
39+
- Please read the new README for developer
40+
41+
42+
## Version 2.0.1 - Date 1 Jun 2023
43+
### Bug Fix 🛠️
44+
- Fix month abbreviation

0 commit comments

Comments
 (0)