diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2024-05-01 18:25:22 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-05-01 18:58:28 +0200 |
commit | 11fe88bb40b9a18583798e15fd6ab4f88cb5aaf1 (patch) | |
tree | 301ae3c64ba9fa006a7794cf43860622c19a909e /searx/data/wikidata_units.json | |
parent | c8d0b6529b616aa33678afa10edc414b460ea017 (diff) | |
download | searxng-11fe88bb40b9a18583798e15fd6ab4f88cb5aaf1.tar.gz searxng-11fe88bb40b9a18583798e15fd6ab4f88cb5aaf1.zip |
[fix] update wikidata units - remove URL prefix from Q-name
Sometimes the URL prefix switches from a http to a https, this patch harden the
code that removes the URL prefix from wikidata Q-name, issue has been reported
in [1].
[1] https://github.com/searxng/searxng/pull/3437#issuecomment-2082121730
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/data/wikidata_units.json')
-rw-r--r-- | searx/data/wikidata_units.json | 134 |
1 files changed, 132 insertions, 2 deletions
diff --git a/searx/data/wikidata_units.json b/searx/data/wikidata_units.json index d46772e47..51a412cfe 100644 --- a/searx/data/wikidata_units.json +++ b/searx/data/wikidata_units.json @@ -1404,6 +1404,136 @@ "symbol": "cm H₂O", "to_si_factor": 98.0665 }, + "Q125387265": { + "si_name": "Q11574", + "symbol": "qs", + "to_si_factor": 1e-30 + }, + "Q125387281": { + "si_name": "Q11574", + "symbol": "rs", + "to_si_factor": 1e-27 + }, + "Q125389370": { + "si_name": "Q11579", + "symbol": "rK", + "to_si_factor": 1e-27 + }, + "Q125389387": { + "si_name": "Q11579", + "symbol": "qK", + "to_si_factor": 1e-30 + }, + "Q125389519": { + "si_name": "Q11579", + "symbol": "RK", + "to_si_factor": 1e+27 + }, + "Q125389534": { + "si_name": "Q11579", + "symbol": "QK", + "to_si_factor": 1e+30 + }, + "Q125390959": { + "si_name": "Q41509", + "symbol": "rmol", + "to_si_factor": 1e-27 + }, + "Q125390987": { + "si_name": "Q41509", + "symbol": "qmol", + "to_si_factor": 1e-30 + }, + "Q125392001": { + "si_name": "Q41509", + "symbol": "Rmol", + "to_si_factor": 1e+27 + }, + "Q125392014": { + "si_name": "Q41509", + "symbol": "Qmol", + "to_si_factor": 1e+30 + }, + "Q125470272": { + "si_name": "Q102573", + "symbol": "rBq", + "to_si_factor": 1e-27 + }, + "Q125470277": { + "si_name": "Q102573", + "symbol": "qBq", + "to_si_factor": 1e-30 + }, + "Q125470426": { + "si_name": "Q102573", + "symbol": "RBq", + "to_si_factor": 1e+27 + }, + "Q125470445": { + "si_name": "Q102573", + "symbol": "QBq", + "to_si_factor": 1e+30 + }, + "Q125470704": { + "si_name": "Q25406", + "symbol": "rC", + "to_si_factor": 1e-27 + }, + "Q125470716": { + "si_name": "Q25406", + "symbol": "qC", + "to_si_factor": 1e-30 + }, + "Q125471094": { + "si_name": "Q25406", + "symbol": "RC", + "to_si_factor": 1e+27 + }, + "Q125471109": { + "si_name": "Q25406", + "symbol": "QC", + "to_si_factor": 1e+30 + }, + "Q125471199": { + "si_name": null, + "symbol": "r°C", + "to_si_factor": null + }, + "Q125471200": { + "si_name": null, + "symbol": "q°C", + "to_si_factor": null + }, + "Q125471246": { + "si_name": null, + "symbol": "R°C", + "to_si_factor": null + }, + "Q125471247": { + "si_name": null, + "symbol": "Q°C", + "to_si_factor": null + }, + "Q125471334": { + "si_name": "Q131255", + "symbol": "rF", + "to_si_factor": 1e-27 + }, + "Q125471344": { + "si_name": "Q131255", + "symbol": "qF", + "to_si_factor": 1e-30 + }, + "Q125471409": { + "si_name": "Q131255", + "symbol": "RF", + "to_si_factor": 1e+27 + }, + "Q125471423": { + "si_name": "Q131255", + "symbol": "QF", + "to_si_factor": 1e+30 + }, "Q12714022": { "si_name": "Q11570", "symbol": "cwt", @@ -4506,7 +4636,7 @@ }, "Q829073": { "si_name": "Q33680", - "symbol": null, + "symbol": "\"", "to_si_factor": 4.84813681109536e-06 }, "Q83216": { @@ -6274,4 +6404,4 @@ "symbol": "m Hg", "to_si_factor": 133322.0 } -} +}
\ No newline at end of file |