# HG changeset patch # User Goffi # Date 1631116728 -7200 # Node ID 72b0e4053ab02908cfc3fa03b77f609c5fe5dff7 # Parent 9ae6ec74face5d1b71c1fa9641cb3fcac4c5c22e core (memory/slqa): implement `getProfileById` rel 361 diff -r 9ae6ec74face -r 72b0e4053ab0 sat/memory/sqla.py --- 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