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:
@@ -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_MODE"] = os.getenv("DEV_MODE", "false").lower() == "true"
|
||||||
app.config["DEV_ADMIN_ME"] = os.getenv("DEV_ADMIN_ME", "")
|
app.config["DEV_ADMIN_ME"] = os.getenv("DEV_ADMIN_ME", "")
|
||||||
|
|
||||||
# Application version
|
# Application version (use __version__ from package)
|
||||||
app.config["VERSION"] = os.getenv("VERSION", "0.6.0")
|
from starpunk import __version__
|
||||||
|
app.config["VERSION"] = os.getenv("VERSION", __version__)
|
||||||
|
|
||||||
# RSS feed configuration
|
# RSS feed configuration
|
||||||
app.config["FEED_MAX_ITEMS"] = int(os.getenv("FEED_MAX_ITEMS", "50"))
|
app.config["FEED_MAX_ITEMS"] = int(os.getenv("FEED_MAX_ITEMS", "50"))
|
||||||
|
|||||||
Reference in New Issue
Block a user