mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 23:12:04 +00:00
feat(mood): carry the five level-A values through backup, restore and CSV
- the backup select and the payload carry all five, on both the portable and the disaster-recovery arm - the restore writes what the file holds and nothing else: a file from before these columns restores them empty rather than deriving them - the CSV appends them after the existing columns so nothing shifts under a spreadsheet, and an unanswered value is an empty cell rather than a zero, which is a real answer on this scale - the round trip asserts each of the five by value, including a zero
This commit is contained in:
1 parent
643d8a5a00
commit
9e44c8754e
6 files changed
+126
No files matched your search
@@ -774,6 +774,15 @@ const handler = apiHandler(
|
||||
date: entry.date,
|
||||
mood: entry.mood,
|
||||
score: entry.score,
|
||||
// The five level-A values. `?? null` rather than a derivation:
|
||||
// a file that carries none is a file from before they existed,
|
||||
// and filling them in here would put a number the person never
|
||||
// gave into a restored row and call it their answer.
|
||||
moodA1: entry.a1 ?? null,
|
||||
stressA2: entry.a2 ?? null,
|
||||
energyA3: entry.a3 ?? null,
|
||||
connectionA4: entry.a4 ?? null,
|
||||
stabilityA5: entry.a5 ?? null,
|
||||
tags: entry.tags ?? null,
|
||||
// The note comes back the way every other dual-column note
|
||||
// does: ciphertext verbatim when the file carries it, and a
|
||||
|
||||
Reference in new issue
Block a user