Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name = "autoshift"
version = "2.0.1"
description = "AutoSHIFt: Automatically redeem Gearbox SHIFt Codes"
authors = [
"Fabian Schweinfurth <github@derfabbi.de>",
"zarmstrong <git@traffid.com>",
"Fabian Schweinfurth <github@derfabbi.de>",
]
license = "GPLv3"
requires-poetry = ">=2.4,<3.0"
Expand Down
4 changes: 2 additions & 2 deletions query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
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)
txt = " autoshift by @Fabbi "
banner = f"{txt:=^{longest_line}}\n{banner}\n"
banner += "=" * longest_line

Expand Down