From ad62ef4f6c2866d8d0e5d40f26f2389c6d3a3aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=BE=D0=BA=D0=BE=D1=81=20=D0=90=D1=80=D1=82=D0=B5?= =?UTF-8?q?=D0=BC=20=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B5=D0=B2=D0=B8?= =?UTF-8?q?=D1=87?= Date: Mon, 26 Jan 2026 12:56:57 +0700 Subject: [PATCH] Fix CSV & MD --- redmine_reporter/formatters/csv.py | 3 +++ redmine_reporter/formatters/markdown.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/redmine_reporter/formatters/csv.py b/redmine_reporter/formatters/csv.py index f785d9d..4019c6a 100644 --- a/redmine_reporter/formatters/csv.py +++ b/redmine_reporter/formatters/csv.py @@ -8,6 +8,9 @@ from ..types import ReportRow class CSVFormatter(Formatter): """Форматтер для экспорта в CSV.""" + def __init__(self, **kwargs): + super().__init__() + def format(self, rows: List[ReportRow]) -> str: output = io.StringIO() writer = csv.writer(output, dialect="excel") diff --git a/redmine_reporter/formatters/markdown.py b/redmine_reporter/formatters/markdown.py index 8512d13..714302f 100644 --- a/redmine_reporter/formatters/markdown.py +++ b/redmine_reporter/formatters/markdown.py @@ -6,6 +6,9 @@ from ..types import ReportRow class MarkdownFormatter(Formatter): """Форматтер для экспорта в Markdown.""" + def __init__(self, **kwargs): + super().__init__() + def format(self, rows: List[ReportRow]) -> str: lines = [ "| Проект | Версия | Задача | Статус | Затрачено |",