feat(backup): export more information on each individual cog

This commit is contained in:
Seaswimmer 2024-01-31 13:55:34 -05:00
parent 3662ce3b23
commit d7b5c5f239
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

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