diff sat/memory/sqla.py @ 3665:72b0e4053ab0

core (memory/slqa): implement `getProfileById` rel 361
author Goffi <goffi@goffi.org>
date Wed, 08 Sep 2021 17:58:48 +0200
parents 9ae6ec74face
children bd13391ee29e
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