Fix CSV & MD
This commit is contained in:
@@ -8,6 +8,9 @@ from ..types import ReportRow
|
|||||||
class CSVFormatter(Formatter):
|
class CSVFormatter(Formatter):
|
||||||
"""Форматтер для экспорта в CSV."""
|
"""Форматтер для экспорта в CSV."""
|
||||||
|
|
||||||
|
def __init__(self, **kwargs):
|
||||||
|
super().__init__()
|
||||||
|
|
||||||
def format(self, rows: List[ReportRow]) -> str:
|
def format(self, rows: List[ReportRow]) -> str:
|
||||||
output = io.StringIO()
|
output = io.StringIO()
|
||||||
writer = csv.writer(output, dialect="excel")
|
writer = csv.writer(output, dialect="excel")
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ from ..types import ReportRow
|
|||||||
class MarkdownFormatter(Formatter):
|
class MarkdownFormatter(Formatter):
|
||||||
"""Форматтер для экспорта в Markdown."""
|
"""Форматтер для экспорта в Markdown."""
|
||||||
|
|
||||||
|
def __init__(self, **kwargs):
|
||||||
|
super().__init__()
|
||||||
|
|
||||||
def format(self, rows: List[ReportRow]) -> str:
|
def format(self, rows: List[ReportRow]) -> str:
|
||||||
lines = [
|
lines = [
|
||||||
"| Проект | Версия | Задача | Статус | Затрачено |",
|
"| Проект | Версия | Задача | Статус | Затрачено |",
|
||||||
|
|||||||
Reference in New Issue
Block a user