fix: ruff lint + format fixes in tests, ESLint fixes in frontend
This commit is contained in:
@@ -60,9 +60,7 @@ async def create_export(
|
||||
csv_content = generate_datev_csv(sales)
|
||||
|
||||
# Calculate total amount
|
||||
total_amount = sum(
|
||||
(s.sale_price or Decimal("0")) for s in sales
|
||||
)
|
||||
total_amount = sum((s.sale_price or Decimal("0")) for s in sales)
|
||||
|
||||
# Save CSV file
|
||||
os.makedirs(output_dir, exist_ok=True)
|
||||
@@ -111,7 +109,9 @@ async def list_exports(
|
||||
return exports, total
|
||||
|
||||
|
||||
async def get_export_csv(db: AsyncSession, export_id: uuid.UUID) -> tuple[str, bytes] | None:
|
||||
async def get_export_csv(
|
||||
db: AsyncSession, export_id: uuid.UUID
|
||||
) -> tuple[str, bytes] | None:
|
||||
"""Get the CSV content for a DATEV export.
|
||||
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user