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

Commit

Permalink
fix(import): update PlateInfo import path to match new module structure
Browse files Browse the repository at this point in the history
  • Loading branch information
NTGNguyen committed Dec 24, 2024
1 parent 8e27ae0 commit bd09001
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/check_phat_nguoi/modules/get_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import requests
from requests import Response

from check_phat_nguoi.models.plate_info import PlateInfo
from check_phat_nguoi.models.config.plate_info import PlateInfo
from check_phat_nguoi.utils.constants import URL

from logging import getLogger
Expand Down Expand Up @@ -61,8 +61,7 @@ def get_data(self) -> Dict[str, None | Dict] | None:
"""
threads: list[Thread] = []
for plate_info in self._plate_infos:
thread = Thread(target=self._get_data,
args=(plate_info.plate,))
thread = Thread(target=self._get_data, args=(plate_info.plate,))
threads.append(thread)
thread.start()
for idx, thread in enumerate(threads, start=1):
Expand Down

0 comments on commit bd09001

Please sign in to comment.