Skip to content

Commit

Permalink
fix: default value for NOTIFY_REACHED_USAGE_PERCENT and `NOTIFY_DAY…
Browse files Browse the repository at this point in the history
…S_LEFT `
  • Loading branch information
ImMohammad20000 committed Oct 21, 2024
1 parent acc79b4 commit 262a33f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@
# sends a notification when the user uses this much of thier data
NOTIFY_REACHED_USAGE_PERCENT = config(
"NOTIFY_REACHED_USAGE_PERCENT",
default=[80],
default="80",
cast=lambda v: [int(p.strip()) for p in v.split(',')] if v else []
)

# sends a notification when there is n days left of their service
NOTIFY_DAYS_LEFT = config(
"NOTIFY_DAYS_LEFT",
default=[3],
default="3",
cast=lambda v: [int(d.strip()) for d in v.split(',')] if v else []
)

Expand Down

0 comments on commit 262a33f

Please sign in to comment.