Update app.py
Browse files
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
|