24 lines
483 B
Python
24 lines
483 B
Python
from core.models.system.SystemState import SystemState
|
|
|
|
|
|
class SystemStateController:
|
|
|
|
@staticmethod
|
|
def get():
|
|
return SystemState.get()
|
|
|
|
@staticmethod
|
|
def exists():
|
|
return SystemState.exists()
|
|
|
|
@staticmethod
|
|
def create(profile_id):
|
|
return SystemState(profile_id).save()
|
|
|
|
@staticmethod
|
|
def update_or_create(system_state):
|
|
system_state.save()
|
|
|
|
@staticmethod
|
|
def dissolve():
|
|
return SystemState.dissolve()
|