Revision 8477d0cf
Added by koszko over 1 year ago
html/install.js | ||
---|---|---|
181 | 181 |
work.waiting++; |
182 | 182 |
|
183 | 183 |
const url = ver ? |
184 |
`${this.repo_url}${item_type}/${id}/${ver.join(".")}.json` :
|
|
184 |
`${this.repo_url}${item_type}/${id}/${ver.join(".")}` : |
|
185 | 185 |
`${this.repo_url}${item_type}/${id}.json`; |
186 | 186 |
const response = |
187 | 187 |
await browser.tabs.sendMessage(tab_id, ["repo_query", url]); |
test/haketilo_test/world_wide_library.py | ||
---|---|---|
195 | 195 |
(resource, resource_versions, sample_resources_catalog), |
196 | 196 |
(mapping, mapping_versions, sample_mappings_catalog) |
197 | 197 |
]: |
198 |
fmt = f'https://hydril.la/{item["type"]}/{item["identifier"]}%s.json'
|
|
198 |
fmt = f'https://hydril.la/{item["type"]}/{item["identifier"]}%s' |
|
199 | 199 |
# Make 2 versions of each item so that we can test updates. |
200 | 200 |
for ver in versions: |
201 | 201 |
item['version'] = ver |
202 |
for fmt_arg in ('', '/' + item_version_string(item)): |
|
202 |
for fmt_arg in ('.json', '/' + item_version_string(item)):
|
|
203 | 203 |
catalog[fmt % fmt_arg] = make_handler(json.dumps(item)) |
204 | 204 |
|
205 | 205 |
def serve_query(command, get_params, post_params): |
Also available in: Unified diff
fix URL construction when downloading definitions from Hydrilla