mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Merge branch 'dev' into 'master'
4.0.4-hotfix2 See merge request crafty-controller/crafty-4!381
This commit is contained in:
commit
a252444c52
@ -1,5 +1,10 @@
|
||||
# Changelog
|
||||
|
||||
## --- [4.0.4-hotfix2] - 2022/06/21
|
||||
### Bug fixes
|
||||
- Fix Traceback on schedule config page ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/381))
|
||||
<br><br>
|
||||
|
||||
## --- [4.0.4-hotfix] - 2022/06/21
|
||||
### Bug fixes
|
||||
- Remove bad check for backups path ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/380))
|
||||
|
@ -868,6 +868,11 @@ class PanelHandler(BaseHandler):
|
||||
|
||||
elif page == "add_schedule":
|
||||
server_id = self.get_argument("id", None)
|
||||
if server_id is None:
|
||||
return self.redirect("/panel/error?error=Invalid Schedule ID")
|
||||
server_obj = self.controller.servers.get_server_instance_by_id(server_id)
|
||||
page_data["backup_failed"] = server_obj.last_backup_status()
|
||||
server_obj = None
|
||||
page_data["schedules"] = HelpersManagement.get_schedules_by_server(
|
||||
server_id
|
||||
)
|
||||
@ -926,7 +931,10 @@ class PanelHandler(BaseHandler):
|
||||
elif page == "edit_schedule":
|
||||
server_id = self.check_server_id()
|
||||
if not server_id:
|
||||
return
|
||||
return self.redirect("/panel/error?error=Invalid Schedule ID")
|
||||
server_obj = self.controller.servers.get_server_instance_by_id(server_id)
|
||||
page_data["backup_failed"] = server_obj.last_backup_status()
|
||||
server_obj = None
|
||||
|
||||
page_data["schedules"] = HelpersManagement.get_schedules_by_server(
|
||||
server_id
|
||||
@ -934,6 +942,7 @@ class PanelHandler(BaseHandler):
|
||||
sch_id = self.get_argument("sch_id", None)
|
||||
if sch_id is None:
|
||||
self.redirect("/panel/error?error=Invalid Schedule ID")
|
||||
return
|
||||
schedule = self.controller.management.get_scheduled_task_model(sch_id)
|
||||
page_data[
|
||||
"get_players"
|
||||
|
Loading…
Reference in New Issue
Block a user