mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 17:55:29 +01:00
Merge branch 'bug/schedule-type-error' into 'dev'
Traceback on schedule creation See merge request crafty-controller/crafty-4!469
This commit is contained in:
commit
a2aa9ad58e
@ -1,9 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
## --- [4.0.15] - 2022/TBD
|
## --- [4.0.15] - 2022/10/02
|
||||||
### New features
|
### New features
|
||||||
TBD
|
TBD
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
TBD
|
- Fix traceback on basic schedule with "days" interval ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/469))
|
||||||
### Tweaks
|
### Tweaks
|
||||||
TBD
|
TBD
|
||||||
### Lang
|
### Lang
|
||||||
|
@ -1700,7 +1700,7 @@ class PanelHandler(BaseHandler):
|
|||||||
# only check for time if it's number of days
|
# only check for time if it's number of days
|
||||||
if interval_type == "days":
|
if interval_type == "days":
|
||||||
sch_time = bleach.clean(self.get_argument("time", None))
|
sch_time = bleach.clean(self.get_argument("time", None))
|
||||||
if interval > 30:
|
if int(interval) > 30:
|
||||||
self.redirect(
|
self.redirect(
|
||||||
"/panel/error?error=Invalid argument."
|
"/panel/error?error=Invalid argument."
|
||||||
" Days must be 30 or fewer."
|
" Days must be 30 or fewer."
|
||||||
@ -1868,7 +1868,7 @@ class PanelHandler(BaseHandler):
|
|||||||
# only check for time if it's number of days
|
# only check for time if it's number of days
|
||||||
if interval_type == "days":
|
if interval_type == "days":
|
||||||
sch_time = bleach.clean(self.get_argument("time", None))
|
sch_time = bleach.clean(self.get_argument("time", None))
|
||||||
if interval > 30:
|
if int(interval) > 30:
|
||||||
self.redirect(
|
self.redirect(
|
||||||
"/panel/error?error=Invalid argument."
|
"/panel/error?error=Invalid argument."
|
||||||
" Days must be 30 or fewer."
|
" Days must be 30 or fewer."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user