Skip to content

Commit

Permalink
Revert "code cleanup"
Browse files Browse the repository at this point in the history
This reverts commit be38e7e.
  • Loading branch information
mevljas committed Feb 9, 2025
1 parent f841556 commit de8eafa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spider/spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ async def run_spider(database_manager: DatabaseManager) -> tuple[dict, bool]:
for channel, page_url in config:
logger.debug("Processing channel %s with URL %s", channel, page_url)

discord_listings[channel] = []

# create a new page inside context.
browser_page = await browser.new_page(
# pylint: disable=line-too-long
Expand Down Expand Up @@ -117,7 +115,7 @@ async def run_spider(database_manager: DatabaseManager) -> tuple[dict, bool]:
await browser_page.close()

await browser.close()
logger.info("Spider finished.")
logger.info("Spider finished. Found %d new listings.", len(discord_listings))

return discord_listings, error

Expand Down

0 comments on commit de8eafa

Please sign in to comment.