memory (storage): add get_profile_by_name method

This commit is contained in:
Goffi 2026-03-17 17:54:44 +01:00
commit a405d6c8f7

View file

@ -137,6 +137,9 @@ class Storage:
def get_profile_by_id(self, profile_id):
return get_profile_by_id(profile_id)
def get_profile_by_name(self, profile: str) -> str:
return self.profiles[profile]
async def migrate_apply(self, *args: str, log_output: bool = False) -> None:
"""Do a migration command