fix: Translations related to the date range filter (#26074)

This commit is contained in:
Bill Belanger
2024-02-21 18:29:03 -05:00
committed by GitHub
parent 2e4f6d3f38
commit cc2f6f1ed9
41 changed files with 367755 additions and 367519 deletions

View File

@@ -59,8 +59,10 @@ class DeleteDatabaseCommand(BaseCommand):
if reports := ReportScheduleDAO.find_by_database_id(self._model_id):
report_names = [report.name for report in reports]
raise DatabaseDeleteFailedReportsExistError(
_("There are associated alerts or reports: %(report_names)s")
% {"report_names": ",".join(report_names)}
_(
"There are associated alerts or reports: %(report_names)s",
report_names=",".join(report_names),
)
)
# Check if there are datasets for this database
if self._model.tables: