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

Commit

Permalink
refactor: remove redundant function as its logic is handled in anothe…
Browse files Browse the repository at this point in the history
…r method
  • Loading branch information
NTGNguyen committed Dec 25, 2024
1 parent 35037e1 commit 4624b8c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/check_phat_nguoi/context/plates_context.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
from typing import Dict

from check_phat_nguoi.models.context import PlatesContextModel
from check_phat_nguoi.utils.singleton import Singleton


class PlatesContext(Singleton, PlatesContextModel):
def get_context(self, data_dict: Dict[str, None | Dict], owner: str = "Unknown"):
for plate, plate_violation_dict in data_dict.items():
plate_info_dict = {"plate": plate, "owner": owner}
plate_info_model = PlateInfoContextModel(**plate_info_dict)
plate_info_model.get_plate_info(plate, plate_violation_dict)
self.plates.append(plate_info_model)
pass


plates_context: PlatesContext = PlatesContext()
Expand Down

0 comments on commit 4624b8c

Please sign in to comment.