Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
refactor(engine/checkphatnguoi): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinNitroG committed Jan 15, 2025
1 parent a95fe8a commit 877d934
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/check_phat_nguoi/get_data/engines/check_phat_nguoi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
GET_DATA_API_URL_CHECKPHATNGUOI as API_URL,
)
from check_phat_nguoi.context import (
PlateDetail,
ViolationDetail,
)
from check_phat_nguoi.context.plates import PlateDetail
from check_phat_nguoi.types import (
ApiEnum,
VehicleStrVieType,
Expand Down Expand Up @@ -80,7 +80,7 @@ def _parse_violation(self, violation_dict: dict) -> None:
)
self._violations_details_set.add(violation_detail)

def parse_violations(self) -> tuple[ViolationDetail, ...] | None:
def parse(self) -> tuple[ViolationDetail, ...] | None:
if not self._plate_detail_dict or not self._plate_detail_dict["data"]:
return
for violation_dict in self._plate_detail_dict["data"]:
Expand Down Expand Up @@ -131,7 +131,7 @@ async def get_data(self, plate_info: PlateInfo) -> PlateDetail | None:
type=type,
violations=_CheckPhatNguoiGetDataParseEngine(
plate_info=plate_info, plate_detail_dict=plate_detail_dict
).parse_violations(),
).parse(),
)

@override
Expand Down

0 comments on commit 877d934

Please sign in to comment.