Skip to content

Commit

Permalink
Update eco_support.py
Browse files Browse the repository at this point in the history
fixed interest duration (24hrs instead of 1 second)
  • Loading branch information
DanielOrourke02 authored May 9, 2024
1 parent df6f7f9 commit 8352058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eco_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def update_bank_interest(user_id, max_bank_size):
time_difference = time.time() - last_interest_update

# If 24 hours have passed, apply interest 24 * 60 * 60 == 1 day/24 hours
if time_difference >= 3:
if time_difference >= 24 * 60 * 60:
print("updated bank interest!")
# Calculate interest amount (10% of current bank balance)
bank_balance = get_bank_balance(user_id)
Expand Down

0 comments on commit 8352058

Please sign in to comment.