some refactoring

This commit is contained in:
2026-10-16 15:27:41 +02:00
parent 696823406e
commit ef1a65adeb
13 changed files with 49 additions and 43 deletions
+3 -3
View File
@@ -5,14 +5,14 @@ from pydantic import ConfigDict, Field, computed_field, field_validator
from sqlalchemy import Date, String
from sqlalchemy.orm import Mapped, mapped_column
from src.models._common import (
from src.models.common import (
ExportBaseModel,
IngestdbBase,
_hash,
_parse_date_german,
_parse_decimal_german,
date2str,
decimal2str,
hashify,
)
@@ -72,7 +72,7 @@ class ComdirectGiro(ComdirectBase):
@computed_field # type: ignore[prop-decorator]
@property
def hash_id(self) -> str:
return _hash(self.date_val, self.date_book, self.text)
return hashify(self.date_val, self.date_book, self.text)
@field_validator("date_book", mode="before")
@classmethod