feat(backup): export more information on each individual cog
This commit is contained in:
parent
3662ce3b23
commit
d7b5c5f239
1 changed files with 6 additions and 1 deletions
|
@ -52,7 +52,12 @@ class Backup(commands.Cog):
|
|||
|
||||
for cog in cogs:
|
||||
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue