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)