WIP: Add IssueCards #67

Draft
cswimr wants to merge 4 commits from issuecards/init into main
Showing only changes of commit c0de30aaf9 - Show all commits

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)