From: Michael Tremer Date: Tue, 10 Mar 2026 14:51:42 +0000 (+0000) Subject: reports: Include the URL to the report in the API response X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2412e96ac9a161dd7e829f9ab801253a359e55c0;p=dbl.git reports: Include the URL to the report in the API response Signed-off-by: Michael Tremer --- diff --git a/src/dbl/reports.py b/src/dbl/reports.py index d3c2794..b48d7d4 100644 --- a/src/dbl/reports.py +++ b/src/dbl/reports.py @@ -502,8 +502,9 @@ class Report(sqlmodel.SQLModel, database.BackendMixin, table=True): # URL + @pydantic.computed_field @property - def url(self): + def url(self) -> str: return "https://www.ipfire.org/dbl/reports/%s" % self.id # Comments