From 1cc9c69b45099f6b24385c5a1c2a9cba3d664884 Mon Sep 17 00:00:00 2001 From: zarmstrong Date: Tue, 14 Jul 2026 16:28:48 -0600 Subject: [PATCH 1/2] fix: update project author attribution --- pyproject.toml | 2 +- query.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 41ec381..b2496d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,8 +3,8 @@ name = "autoshift" version = "2.0.1" description = "AutoSHIFt: Automatically redeem Gearbox SHIFt Codes" authors = [ - "Fabian Schweinfurth ", "zarmstrong ", + "Fabian Schweinfurth ", ] license = "GPLv3" requires-poetry = ">=2.4,<3.0" diff --git a/query.py b/query.py index 3abe75d..89d3b6e 100644 --- a/query.py +++ b/query.py @@ -141,7 +141,7 @@ def print_banner(data): longest_line = max(len(line) for line in lines) + 2 banner = "\n".join(f"{line: ^{longest_line}}" for line in lines) - txt = " autoshift by @Fabbi " + txt = " autoshift by @zarmstrong, originally by @Fabbi " banner = f"{txt:=^{longest_line}}\n{banner}\n" banner += "=" * longest_line From 3969cc969b54a2833f8cd1f468be3f83b5307fba Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Jul 2026 22:35:42 +0000 Subject: [PATCH 2/2] fix: compute banner width using both lines and txt to prevent misaligned title --- query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/query.py b/query.py index 89d3b6e..3c63c31 100644 --- a/query.py +++ b/query.py @@ -139,9 +139,9 @@ def print_banner(data): if profile: lines.append(f"Profile: {profile}") - longest_line = max(len(line) for line in lines) + 2 - banner = "\n".join(f"{line: ^{longest_line}}" for line in lines) txt = " autoshift by @zarmstrong, originally by @Fabbi " + longest_line = max(max(len(line) for line in lines) + 2, len(txt)) + banner = "\n".join(f"{line: ^{longest_line}}" for line in lines) banner = f"{txt:=^{longest_line}}\n{banner}\n" banner += "=" * longest_line