Make ionosonde_data a map keyed by URSI, and on polling the website, replace data for the specific URSI rather than overwriting everything. This allows us to preserve data from an older lookup if the website is down or returns nothing

This commit is contained in:
Ian Renton
2026-05-16 11:04:40 +01:00
parent 6058eb5053
commit a7a45190cb
13 changed files with 48 additions and 49 deletions

View File

@@ -24,7 +24,7 @@
<title>Spothole</title>
<link rel="stylesheet" href="/css/style.css?v=1778924254" type="text/css">
<link rel="stylesheet" href="/css/style.css?v=1778925881" type="text/css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
<link href="/fa/css/fontawesome.min.css" rel="stylesheet" />
@@ -52,9 +52,9 @@
integrity="sha384-L1eE4eD41kpBIWe2I0eHy+GnEUC4RIpcvibVW2JCminuPlTl+2Bc528iPdVMg5Dn"
crossorigin="anonymous"></script>
<script src="https://misc.ianrenton.com/jsutils/utils.js?v=1778924254"></script>
<script src="https://misc.ianrenton.com/jsutils/ui-ham.js?v=1778924254"></script>
<script src="https://misc.ianrenton.com/jsutils/geo.js?v=1778924254"></script>
<script src="https://misc.ianrenton.com/jsutils/utils.js?v=1778925881"></script>
<script src="https://misc.ianrenton.com/jsutils/ui-ham.js?v=1778925881"></script>
<script src="https://misc.ianrenton.com/jsutils/geo.js?v=1778925881"></script>
</head>
<body>