aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_data.lua
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-29 14:17:33 +0200
committerDanilo M. <danix@danix.xyz>2026-09-29 14:17:33 +0200
commit9f6414838d4fabc174bb193f34225de8d9fc8079 (patch)
tree486f00b96a2174a783122c0e11a5d13c6c5ca965 /test/test_data.lua
parent4300fb5a232a2edf5262073ab7b898b8cbb126e4 (diff)
downloadconky-theme-udt-9f6414838d4fabc174bb193f34225de8d9fc8079.tar.gz
conky-theme-udt-9f6414838d4fabc174bb193f34225de8d9fc8079.zip
feat(immich): fall back to the past week's memories
A day with no memories left the card showing only a notice. When today has none, immich-fetch.sh now merges the memories of each of the past six days, skipping a day whose request fails, and marks the index with a scope week line. The subtitle names where the photos come from, Today or This week, before the i/n counter, and the empty notice reads no memories this week. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'test/test_data.lua')
-rw-r--r--test/test_data.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_data.lua b/test/test_data.lua
index 7b84b3d..4ed58f8 100644
--- a/test/test_data.lua
+++ b/test/test_data.lua
@@ -457,5 +457,7 @@ assert(data.immich_parse('photo a|2014||\n') == nil, 'no generated key: nil')
assert(data.immich_parse(nil) == nil, 'nil index: nil')
local none = data.immich_parse('generated 1\n')
assert(none and #none == 0, 'no memories today: empty list, not nil')
+assert(not im.week, 'no scope line: today')
+assert(data.immich_parse('generated 1\nscope week\n').week, 'scope week parses')
print('test_data: all assertions passed')