def get(id_name): """ Gets a system by the given ID """ system = GJMS.get_by_or_init(id=id_name) if type(system) != GJMS: raise gjms.core.exceptions.NonExistentPlatform("This system does not exist") else: return system
def add(name): """ Preferred way to add a system. """ return GJMS.get_by_or_init(id=1, name=name)