anton-l HF staff commited on
Commit
0432264
β€’
1 Parent(s): fb00c38

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": ", ".join(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 or hit["gh_license"] == "NOASSERTION") else hit["gh_license"],
104
  "language": hit["language"],
105
  }
106
  for hit in response