From d7b5c5f2393b1ad5d0847029bdae561aed44da41 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 31 Jan 2024 13:55:34 -0500 Subject: [PATCH] feat(backup): export more information on each individual cog --- backup/backup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backup/backup.py b/backup/backup.py index cc85708..f42a62a 100644 --- a/backup/backup.py +++ b/backup/backup.py @@ -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)