From c0de30aaf9076b8d6dc5cfa6f6c044136d9ca180 Mon Sep 17 00:00:00 2001 From: cswimr Date: Fri, 28 Mar 2025 13:45:05 -0500 Subject: [PATCH] fix(issuecards): don't create random tuples for no reason --- issuecards/models/repository.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/issuecards/models/repository.py b/issuecards/models/repository.py index bdae1b5..818c75e 100644 --- a/issuecards/models/repository.py +++ b/issuecards/models/repository.py @@ -127,7 +127,7 @@ class Repository(BaseModel): provider = await Provider.from_config(repo["provider"], guild=guild) except ValueError: continue - repositories_list.extend((cls(cog=cog, guild=guild, owner=repo["owner"], name=repo["name"], prefix=repo["prefix"], provider=provider),)) + repositories_list.append(cls(cog=cog, guild=guild, owner=repo["owner"], name=repo["name"], prefix=repo["prefix"], provider=provider)) global_repositories = await config.global_repositories() for repo in global_repositories: @@ -135,6 +135,6 @@ class Repository(BaseModel): provider = await Provider.from_config(repo["provider"]) except ValueError: continue - repositories_list.extend((cls(cog=cog, guild=None, owner=repo["owner"], name=repo["name"], prefix=repo["prefix"], provider=provider),)) + repositories_list.append(cls(cog=cog, guild=None, owner=repo["owner"], name=repo["name"], prefix=repo["prefix"], provider=provider)) return tuple(repositories_list)