Backup #16
1 changed files with 6 additions and 1 deletions
|
@ -52,7 +52,12 @@ class Backup(commands.Cog):
|
||||||
|
|
||||||
for cog in cogs:
|
for cog in cogs:
|
||||||
if cog.repo_name == repo.name:
|
if cog.repo_name == repo.name:
|
||||||
repo_dict["cogs"].append(cog.name)
|
cog_dict = {
|
||||||
|
"name": cog.name,
|
||||||
|
"pinned": cog.pinned,
|
||||||
|
"commit": cog.commit
|
||||||
|
}
|
||||||
|
repo_dict["cogs"].append(cog_dict)
|
||||||
|
|
||||||
export_data.append(repo_dict)
|
export_data.append(repo_dict)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue