feat(backup): export more information on each individual cog
Some checks failed
Actions / Lint Code (Pylint) (pull_request) Failing after 17s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 11s

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

View file

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