Use repos_string instead of repos[0].name in JSON output in format.py.

This commit is contained in:
Adam Waldenberg 2015-11-07 05:55:14 +01:00
parent 9a22763e64
commit 12f8c8a192

View file

@ -113,7 +113,7 @@ def output_header(repos):
print("\t\t\"version\": \"" + version.__version__ + "\",")
if len(repos) <= 1:
print("\t\t\"repository\": \"" + repos[0].name + "\",")
print("\t\t\"repository\": \"" + repos_string + "\",")
else:
repos_json = "\t\t\"repositories\": [ "