Mercurial > libervia-backend
changeset 3665:72b0e4053ab0
core (memory/slqa): implement `getProfileById`
rel 361
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 08 Sep 2021 17:58:48 +0200 (2021-09-08) |
parents | 9ae6ec74face |
children | 342e3ddefd23 |
files | sat/memory/sqla.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/memory/sqla.py Wed Sep 08 17:58:48 2021 +0200 +++ b/sat/memory/sqla.py Wed Sep 08 17:58:48 2021 +0200 @@ -114,6 +114,9 @@ # profile id to component entry point self.components: Dict[int, str] = {} + def getProfileById(self, profile_id): + return self.profiles.get(profile_id) + async def migrateApply(self, *args: str, log_output: bool = False) -> None: """Do a migration command