Skip to content

Commit

Permalink
Update webhookworker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JabLuszko committed Sep 16, 2024
1 parent a2860b1 commit cf1610e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mapadroid/webhook/webhookworker.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,8 +691,9 @@ async def __create_payload(self):
try:
# stations
if 'station' in self.__webhook_types:
stations = self.__prepare_station_data(session, self.__last_check)
stations = await self.__prepare_station_data(session, self.__last_check)
full_payload += stations

# raids
if 'raid' in self.__webhook_types:
raids = self.__prepare_raid_data(
Expand Down Expand Up @@ -770,7 +771,7 @@ async def __run_worker(self):

logger.info("Stopping webhook worker thread")

def __prepare_station_data(self, session: AsyncSession, _timestamp: int):
async def __prepare_station_data(self, session: AsyncSession, _timestamp: int):
logger.debug2("WebhookWorker/DbWebhookReader::__prepare_stations_data called with timestamp {}", _timestamp)

ret = []
Expand Down

0 comments on commit cf1610e

Please sign in to comment.