From 7851968bdc2b4292a2eac85cfe8d4d10eb49f8d3 Mon Sep 17 00:00:00 2001 From: guille Date: Fri, 24 May 2024 11:23:47 +0200 Subject: [PATCH] Add get city to the control --- hub/persistence/db_control.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hub/persistence/db_control.py b/hub/persistence/db_control.py index 7ce19c3a..06703eee 100644 --- a/hub/persistence/db_control.py +++ b/hub/persistence/db_control.py @@ -252,3 +252,6 @@ class DBControl: :param application_uuid: the id of the application to get """ self._application.delete(application_uuid) + + def get_city(self, city_id): + return self._city.get_by_id(city_id)