Skip to content

Commit

Permalink
[scheduler] fix invalid schedule day (when day is non abbreviated)
Browse files Browse the repository at this point in the history
This commit fix possible invalid schedule value when 'monday' is used instead of 'mon'...
  • Loading branch information
cgalibern committed May 13, 2022
1 parent 5d8ef3d commit 27ae315
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions opensvc/core/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@
"fri": 5,
"sat": 6,
"sun": 7,
"monday": 0,
"tuesday": 1,
"wednesday": 2,
"thursday": 3,
"friday": 4,
"saturday": 5,
"sunday": 6,
"monday": 1,
"tuesday": 2,
"wednesday": 3,
"thursday": 4,
"friday": 5,
"saturday": 6,
"sunday": 7,
}

class SchedNotAllowed(Exception):
Expand Down

0 comments on commit 27ae315

Please sign in to comment.