From 93634d2bb0f726dafa144b46f9ff4d5e6628e95e Mon Sep 17 00:00:00 2001 From: Phil Skentelbery Date: Wed, 19 Nov 2025 12:17:08 -0700 Subject: [PATCH] fix: use __version__ as default for VERSION config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- starpunk/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/starpunk/config.py b/starpunk/config.py index 063f1c8..cd16a2e 100644 --- a/starpunk/config.py +++ b/starpunk/config.py @@ -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"))