fix(issuecards): don't create random tuples for no reason

This commit is contained in:
cswimr 2025-03-28 13:45:05 -05:00
parent 58ce685b61
commit c0de30aaf9
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

View file

@ -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)