anton-l HF staff commited on
Commit
813cf48
Β·
verified Β·
1 Parent(s): 91b91b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -100,7 +100,7 @@ def search(query, num_results=10):
100
  "repository": hit["repository"],
101
  "commit_id": hit["commit_id"],
102
  "path": hit["path"],
103
- "license": hit["scancode_licenses"] if hit["gh_license"] is None else hit["gh_license"],
104
  "language": hit["language"],
105
  }
106
  for hit in response
 
100
  "repository": hit["repository"],
101
  "commit_id": hit["commit_id"],
102
  "path": hit["path"],
103
+ "license": ", ".join(hit["scancode_licenses"]) if hit["gh_license"] is None else hit["gh_license"],
104
  "language": hit["language"],
105
  }
106
  for hit in response