diff --git a/data/2025-03-04-stats.json b/data/2025-03-04-stats.json index 44049f329843250982658bb156893c1d75606f68..34114a8ed9b3a0f4bd7c20e6819590d7aad4309e 100644 --- a/data/2025-03-04-stats.json +++ b/data/2025-03-04-stats.json @@ -1,5 +1,4 @@ { - "versionDate": "", "antibodies": 1355665, "species": [ "Homo sapiens", diff --git a/src/client/components/AppFooter.vue b/src/client/components/AppFooter.vue index f7f4bc34c17d49f2aca87f7d45edd343d56fe1ad..453d08bd59a7f1619053cedac16f5e14ed0fb9b6 100644 --- a/src/client/components/AppFooter.vue +++ b/src/client/components/AppFooter.vue @@ -11,6 +11,7 @@ width="143" height="39" alt="The logo of the Institut Pasteur" + loading="lazy" > </a> <a diff --git a/src/client/globals.css b/src/client/globals.css index a4f930c4c18f16d5e6c38b63679435f3b9080b00..206e5e564a6ce51daea911b790afb76520cd4766 100644 --- a/src/client/globals.css +++ b/src/client/globals.css @@ -1,3 +1,5 @@ +@import '../../node_modules/modern-normalize/modern-normalize.css'; + /* Fonts and icons */ /* ------------------------------------------------------------------------- */ diff --git a/src/client/main.ts b/src/client/main.ts index 9a2ceab432b938c487e3d09c7b2e135a0a8c019c..9e8ce6a356c0b07a36b31a94cc1f43328f3407aa 100644 --- a/src/client/main.ts +++ b/src/client/main.ts @@ -18,7 +18,6 @@ import { createPinia } from 'pinia' import { createApp } from 'vue' import App from './components/App.vue' import router from './router' -import 'modern-normalize' import './globals.css' createApp(App) diff --git a/src/server/app.js b/src/server/app.js index 1670321313ede81f94428628f16459b9bd535325..ac0adf5803e008023db408782618f603b13c5e76 100644 --- a/src/server/app.js +++ b/src/server/app.js @@ -37,7 +37,6 @@ import downloadsRoute from './routes/downloadsRoute.js' import healthCheckRoute from './routes/healthCheckRoute.js' import readyCheckRoute from './routes/readyCheckRoute.js' import statisticsRoute from './routes/statisticsRoute.js' -import databaseIsSync from './utils/databaseIsSync.js' /** * Setup the fastify instance with custom @@ -165,9 +164,7 @@ fastify.listen({ host: envConfig.ABSD_SERVER_HOST, port: envConfig.ABSD_SERVER_PORT }).then(async () => { - const dbShouldBeRebuilt = !await databaseIsSync(fastify) - - if (envConfig.NODE_ENV === 'production' && dbShouldBeRebuilt) { + if (envConfig.NODE_ENV === 'production') { return await buildDatabase() } }).then((dbResults) => { diff --git a/src/server/models/Statistics.js b/src/server/models/Statistics.js index abb570e97c1b2024201cce39bf6fc306dbb2b960..ed6ad43f79bf1c46a165ca6955a39e83e487bf3d 100644 --- a/src/server/models/Statistics.js +++ b/src/server/models/Statistics.js @@ -36,6 +36,9 @@ export class Statistics { */ toString() { return JSON.stringify(this, (key, value) => { + // Don't include versionDate + if (key === 'versionDate') return undefined + return value instanceof Set ? [...value] : value }, 2) }