From af7e2ed5207858db09c615c16d271be498445dd4 Mon Sep 17 00:00:00 2001 From: ross-spencer Date: Tue, 3 Dec 2024 12:39:20 +0100 Subject: [PATCH] Add context to docstring --- src/itn_api/reports.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/itn_api/reports.py b/src/itn_api/reports.py index 8997df9..5a15b76 100644 --- a/src/itn_api/reports.py +++ b/src/itn_api/reports.py @@ -308,7 +308,13 @@ async def get_date_ranges(app: FastAPI): async def get_locations(app: FastAPI) -> list: - """Return locations from the database.""" + """Return locations from the database. + + Select one of each kind example: + + * https://stackoverflow.com/a/571487 + + """ try: unique_raw_data = app.state.connection.execute( "select min(node_id), raw_data from data_points group by node_id;"