Fixed Firmware download from the Mikrotik website when there are multiple npk available
Fixed Mikrowizard system permission error when it is set to None
Fixed user device group permissions
Some minor UI improvements
Fix IP scan for one IP scan / Fix not scanning the last IP in the range
Fix manual snippet execution not working when device groups are selected
Some minor bug fixes and improvements

New:
Show background tasks and be able to stop them while running in the background (like an IP scanner)
Add support for manual MikroWizard update dashboard/settings page
update to version 1.0.5

Enhancement:
Show permission error in some pages when the  user doesn't have permission for that page/action
show better charts/graphs in the dashboard and device interface details
show more info on the dashboard about update and version information and license
This commit is contained in:
sepehr 2025-01-02 20:12:00 +03:00
parent a26bd6ae55
commit 70dc0ddc55
15 changed files with 296 additions and 63 deletions

View file

@ -17,7 +17,8 @@ class Tasks(BaseModel):
starttime = DateTimeField()
endtime = DateTimeField()
status = BooleanField()
action = TextField()
name = TextField()
class Meta:
# `indexes` is a tuple of 2-tuples, where the 2-tuples are
# a tuple of column names to index and a boolean indicating
@ -32,7 +33,6 @@ def update_check_status():
def update_job_status():
return (Tasks.select().where(Tasks.signal == 110).get())
#Get groups of device
def backup_job_status():
return (Tasks.select().where(Tasks.signal == 120).get())
@ -51,6 +51,14 @@ def firmware_service_status():
def exec_snipet_status():
return (Tasks.select().where(Tasks.signal == 160).get())
def get_running_tasks():
return (Tasks.select().where(Tasks.status == True))
def get_task_by_signal(signal):
return (Tasks.select().where(Tasks.signal == signal).get())
def get_all():
return (Tasks.select())
class TaskResults(BaseModel):
task_type = TextField()