def get_all() -> Dict[int, ReferenceSystem]: return {row['id']: ReferenceSystem(row) for row in Db.get_all()}
def get_all() -> dict[int, ReferenceSystem]: systems = {row['id']: ReferenceSystem(row) for row in Db.get_all()} for class_ in g.classes.values(): for system_id in class_.reference_systems: systems[system_id].classes.append(class_.name) return systems