This commit is contained in:
Daniel Lindmark 2024-05-20 18:39:17 -05:00
parent 1ed402ceac
commit 103c09d976

View File

@ -66,10 +66,10 @@ def write_to_file(file_name, string):
repository = Repository.request(allspice, "AllSpice-Demos", "Actions-demo")
attributes = get_attributes(repository)
repository_dict = {attribute: getattr(repository, attribute) for attribute in attributes}
# repository_dict = {attribute: getattr(repository, attribute) for attribute in attributes}
# Convert the repository dictionary to a JSON string
repository_json = json.dumps(repository_dict, indent=4)
repository_json = json.dumps(attributes, indent=4)
# Write the JSON string to a file
write_to_file(file_name, repository_json)