fix: use __version__ as default for VERSION config

The config.py was defaulting to hardcoded '0.6.0' instead of using
the package __version__ variable. This caused the footer to show the
wrong version number even after updating to 0.6.1.

Now config.py imports and uses __version__ as the default, ensuring
version consistency across the codebase.

Fixes version display bug in v0.6.1.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-19 12:17:08 -07:00
parent 6d7002fa74
commit 93634d2bb0

View File

@@ -61,8 +61,9 @@ def load_config(app, config_override=None):
app.config["DEV_MODE"] = os.getenv("DEV_MODE", "false").lower() == "true"
app.config["DEV_ADMIN_ME"] = os.getenv("DEV_ADMIN_ME", "")
# Application version
app.config["VERSION"] = os.getenv("VERSION", "0.6.0")
# Application version (use __version__ from package)
from starpunk import __version__
app.config["VERSION"] = os.getenv("VERSION", __version__)
# RSS feed configuration
app.config["FEED_MAX_ITEMS"] = int(os.getenv("FEED_MAX_ITEMS", "50"))