Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 3de60d5

Browse files
committed
Allow to save balance.
1 parent 427e7cb commit 3de60d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

utilities/utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ def inc_display_data(file_name, key, value):
138138
return data
139139

140140

141-
def add_account_to_display_data(file_name, session_name, more_data=""):
141+
def add_account_to_display_data(file_name, session_name, more_data="", balance=0):
142142
file_path = os.path.join(MODULE_DIR, file_name)
143143
data = get_display_data(file_path)
144144
date = time.strftime("%Y-%m-%d %H:%M:%S")
145-
final_data = {"data": more_data, "date": date}
145+
final_data = {"data": more_data, "date": date, "balance": balance}
146146
data[session_name] = final_data
147147
save_display_data(file_path, data)
148148

0 commit comments

Comments
 (0)