From: Christopher Coté Date: Fri, 13 Oct 2023 19:50:28 +0000 (-0400) Subject: fix for single tags and dates X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=58199cdea9db9643c0fed808d9df28355c583730;p=photography.git fix for single tags and dates --- diff --git a/media/database.db b/media/database.db index b551dfcf..b8960097 100644 Binary files a/media/database.db and b/media/database.db differ diff --git a/media/database.db-shm b/media/database.db-shm index 87391840..52805cf6 100644 Binary files a/media/database.db-shm and b/media/database.db-shm differ diff --git a/media/database.db-wal b/media/database.db-wal index 0c65696d..c0eda355 100644 Binary files a/media/database.db-wal and b/media/database.db-wal differ diff --git a/media/image_metadata.exs b/media/image_metadata.exs index 4a7c1e91..f740bf27 100644 --- a/media/image_metadata.exs +++ b/media/image_metadata.exs @@ -119,7 +119,7 @@ defmodule Images do def parse_date(datetime) do [date, time] = String.split(datetime, " ") date = String.replace(date, ":", "-") - {:ok, datetime, _} = DateTime.from_iso8601("#{date}T#{time}Z") + {:ok, datetime, _} = DateTime.from_iso8601("#{date}T#{time}-0400") datetime end @@ -206,7 +206,7 @@ defmodule Images do def group_by_tags(images) do Enum.reduce(images, %{}, fn i, acc -> Enum.reduce(i.tags, acc, fn t, a -> - Map.update(a, t, [], fn e -> e ++ [i] end) + Map.update(a, t, [i], fn e -> e ++ [i] end) end) end) end @@ -239,7 +239,7 @@ defmodule Images do Enum.each(images, fn {k, v} -> f = EEx.eval_file("templates/index.html.eex", - images: Enum.slice(v, 0..@images_per_page), + images: v, tags: tags, dates: dates, media_server: media_server, @@ -254,7 +254,7 @@ defmodule Images do Enum.each(images, fn {k, v} -> f = EEx.eval_file("templates/index.html.eex", - images: Enum.slice(v, 0..@images_per_page), + images: v, tags: tags, dates: dates, media_server: media_server, diff --git a/www/photography/dates/2022-02-19.html b/www/photography/dates/2022-02-19.html index f631ea21..4c6cd5dd 100644 --- a/www/photography/dates/2022-02-19.html +++ b/www/photography/dates/2022-02-19.html @@ -507,6 +507,92 @@ ƒ 1.8 | 11000" | 35.0mm | ISO800 +
+ + + + + 2022-02-19 13:30:37Z + ƒ 1.8 | 1500" | 35.0mm | ISO800 +
+ +
+ + + + + 2022-02-19 13:26:23Z + ƒ 1.8 | 11000" | 35.0mm | ISO800 +
+ +
+ + + + + 2022-02-19 13:26:12Z + ƒ 1.8 | 1333" | 35.0mm | ISO800 +
+ +
+ + + + + 2022-02-19 13:25:12Z + ƒ 1.8 | 1250" | 35.0mm | ISO800 +
+ +
+ + + + + 2022-02-19 13:24:41Z + ƒ 1.8 | 1333" | 35.0mm | ISO800 +
+ +
+ + + + + 2022-02-19 13:22:44Z + ƒ 1.8 | 1250" | 35.0mm | ISO800 +
+