Change get_repo to Repository.request()

This commit is contained in:
Daniel Lindmark 2024-05-15 14:41:01 -05:00
parent 2bc07445cd
commit a2efd1e29d

View File

@ -1,6 +1,6 @@
# save_design_review.py
# Uses py-allspice + AllSpice API to save all design review comments to a markdown file
from allspice import AllSpice, DesignReview
from allspice import AllSpice, DesignReview, Repository
import argparse
import sys
@ -62,7 +62,7 @@ def write_to_file(file_name, string):
f.close()
repository = allspice.get_repository("AllSpice-Demos", "API-Demo")
write_to_file(get_attributes())
repository = Repository.request(allspice, "AllSpice-Demos", "API-Demo")
write_to_file(get_attributes(repository))
print("End-of-file")