memory (storage): add get_profile_by_name method
This commit is contained in:
parent
ea52ebe434
commit
a405d6c8f7
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue