Skip to content

Commit

Permalink
fix: Use the predefined WEEK_DAY_NAMES list
Browse files Browse the repository at this point in the history
  • Loading branch information
txtxj committed May 8, 2023
1 parent df41a47 commit 47d8789
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sources/graphics_list_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ def make_last_7_day_time_list(data: List) -> str:
:returns: string representation of statistics.
"""
full_name = {
"Mon": "Monday",
"Tue": "Tuesday",
"Wed": "Wednesday",
"Thu": "Thursday",
"Fri": "Friday",
"Sat": "Saturday",
"Sun": "Sunday"
"Mon": WEEK_DAY_NAMES[0],
"Tue": WEEK_DAY_NAMES[1],
"Wed": WEEK_DAY_NAMES[2],
"Thu": WEEK_DAY_NAMES[3],
"Fri": WEEK_DAY_NAMES[4],
"Sat": WEEK_DAY_NAMES[5],
"Sun": WEEK_DAY_NAMES[6]
}
names = []
texts = []
Expand Down

0 comments on commit 47d8789

Please sign in to comment.