fix(issuecards): don't create random tuples for no reason
This commit is contained in:
parent
58ce685b61
commit
c0de30aaf9
1 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ class Repository(BaseModel):
|
||||||
provider = await Provider.from_config(repo["provider"], guild=guild)
|
provider = await Provider.from_config(repo["provider"], guild=guild)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
continue
|
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()
|
global_repositories = await config.global_repositories()
|
||||||
for repo in global_repositories:
|
for repo in global_repositories:
|
||||||
|
@ -135,6 +135,6 @@ class Repository(BaseModel):
|
||||||
provider = await Provider.from_config(repo["provider"])
|
provider = await Provider.from_config(repo["provider"])
|
||||||
except ValueError:
|
except ValueError:
|
||||||
continue
|
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)
|
return tuple(repositories_list)
|
||||||
|
|
Loading…
Add table
Reference in a new issue