Skip to content

2025.09.16 축제 배포#126

Merged
GoGiants1 merged 2 commits intoprodfrom
dev
Sep 15, 2025
Merged

2025.09.16 축제 배포#126
GoGiants1 merged 2 commits intoprodfrom
dev

Conversation

@GoGiants1
Copy link
Member

No description provided.

GoGiants1 and others added 2 commits September 16, 2025 01:09
)

* fix: update menu deletion logic to exclude festival restaurant IDs

* lint

* Update handler.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: update menu deletion logic to exclude festival restaurant IDs

* lint

* fix: update menu deletion logic to exclude festival restaurant IDs

* lint
@GoGiants1 GoGiants1 requested a review from Copilot September 15, 2025 16:21
@GoGiants1 GoGiants1 self-assigned this Sep 15, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request implements temporary logic to exclude festival restaurant menus (IDs 250-264) from deletion during the crawling process. This appears to be a festival-specific deployment for September 16, 2025.

  • Added filtering logic to prevent deletion of menus from festival restaurants with IDs 250-264
  • Modified the compare_menus function to use filtered deletion list instead of original deletion list

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +75 to +87
############
# FIXME: 추후 삭제: 축제 음식점(250~264) 메뉴는 삭제 대상에서 제외
db_not_found_filtered = []
for idx, not_found in enumerate(db_not_found):
if not_found:
restaurant_id = db_menus[idx].get("restaurant_id")
if 250 <= restaurant_id <= 264:
db_not_found_filtered.append(False) # 삭제하지 않음
else:
db_not_found_filtered.append(True) # 삭제 대상
else:
db_not_found_filtered.append(False)
######
Copy link

Copilot AI Sep 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The hardcoded restaurant ID range (250-264) should be extracted to a configuration constant or environment variable to improve maintainability and make it easier to update without code changes.

Copilot uses AI. Check for mistakes.
return (
list(compress(crawled_menus, crawled_not_found)),
list(compress(db_menus, db_not_found)),
list(compress(db_menus, db_not_found_filtered)), # FIXME: 축제 음식점(250~264) 메뉴는 삭제 대상에서 제외
Copy link

Copilot AI Sep 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The inline comment should be in English to maintain consistency with the rest of the codebase, or follow the project's established language standards for documentation.

Suggested change
list(compress(db_menus, db_not_found_filtered)), # FIXME: 축제 음식점(250~264) 메뉴는 삭제 대상에서 제외
list(compress(db_menus, db_not_found_filtered)), # FIXME: Exclude festival restaurants (250~264) menus from deletion

Copilot uses AI. Check for mistakes.
@GoGiants1 GoGiants1 merged commit 890784e into prod Sep 15, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants