Skip to content

Merge pull request #1 from amdoi7/master - #1

Open
Fengsuid wants to merge 4 commits into
amdoi7:masterfrom
Fengsuid:master
Open

Merge pull request #1 from amdoi7/master#1
Fengsuid wants to merge 4 commits into
amdoi7:masterfrom
Fengsuid:master

Conversation

@Fengsuid

Copy link
Copy Markdown

1

Copilot AI review requested due to automatic review settings June 19, 2026 13:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates local configuration/data used by the HDU library seat-booking CLI, including adding .env loading support and refreshing cached room/seat metadata.

Changes:

  • Load environment variables from .env at CLI startup and add python-dotenv as a project dependency.
  • Update room/floor name mappings in utils/config.toml (including adding floor 1558 and renaming some labels).
  • Refresh data/rooms_cache.json and adjust .gitignore patterns for cache files.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
utils/config.toml Updates room/floor ID-to-name mappings for seat lookup/display.
utils/cli.py Loads .env and tweaks CLI output / config source handling.
pyproject.toml Adds python-dotenv dependency.
data/rooms_cache.json Updates cached room/floor/seat metadata used for lookups.
.gitignore Fixes __pycache__ ignore typo and refines cache ignore rules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread utils/config.toml
1000 = "二楼东学习空间"
1524 = "二楼西学习空间"
1221 = "四楼学习空间"
1221 = "四楼"
Comment thread utils/cli.py
Comment on lines +150 to +153
# config_file = Path("a.txt")

if config_file.exists():
config_content = config_file.read_text(encoding="utf-8")
# if config_file.exists():
# config_content = config_file.read_text(encoding="utf-8")
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.

3 participants