From 344b6850942ef92d8390d1a1c190400283d69151 Mon Sep 17 00:00:00 2001 From: Guille Date: Fri, 24 May 2024 11:28:43 +0200 Subject: [PATCH] Correct cerc_persistence autodocumentation --- cerc_persistence/db_control.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cerc_persistence/db_control.py b/cerc_persistence/db_control.py index de48562..ab6249f 100644 --- a/cerc_persistence/db_control.py +++ b/cerc_persistence/db_control.py @@ -236,6 +236,13 @@ class DBControl: def delete_application(self, application_uuid): """ Deletes a single application from the database - :param application_uuid: the id of the application to get + :param application_uuid: the id of the application to delete """ self._application.delete(application_uuid) + + def get_city(self, city_id): + """ + Get a single city by id + :param city_id: the id of the city to get + """ + return self._city.get_by_id(city_id)