From a405d6c8f7cfbf7a967d3399611c1a3bca1a3c57 Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 17 Mar 2026 17:54:44 +0100 Subject: [PATCH] memory (storage): add `get_profile_by_name` method --- libervia/backend/memory/sqla.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libervia/backend/memory/sqla.py b/libervia/backend/memory/sqla.py index 1259a41f..52d34854 100644 --- a/libervia/backend/memory/sqla.py +++ b/libervia/backend/memory/sqla.py @@ -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