From: Christopher Coté Date: Fri, 13 Oct 2023 20:33:16 +0000 (-0400) Subject: update image X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=0928b371481b27ba1fa8ce0aa819dcd84baa908e;p=photography.git update image --- diff --git a/media/database.db-shm b/media/database.db-shm index 52805cf66..917a2d436 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 c0eda3557..aa2dd10d6 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 f740bf27f..7ec53536c 100644 --- a/media/image_metadata.exs +++ b/media/image_metadata.exs @@ -217,7 +217,7 @@ defmodule Images do day = i.datetime.day |> to_string() |> String.pad_leading(2, "0") date = "#{i.datetime.year}-#{month}-#{day}" - Map.update(acc, date, [], fn e -> e ++ [i] end) + Map.update(acc, date, [i], fn e -> e ++ [i] end) end) end diff --git a/media/templates/index.html.eex b/media/templates/index.html.eex index 345bf8b93..69f83b44a 100644 --- a/media/templates/index.html.eex +++ b/media/templates/index.html.eex @@ -29,7 +29,8 @@
  • <%= t %>
  • <% end %> - <%= i.datetime %> + <% d = DateTime.add(i.datetime, -4 * 60 * 60) %> + <%= d |> DateTime.to_string() |> String.replace_suffix("Z", "") %> ƒ <%= i.aperture %> | <%= Image.secs(i.exposure_time) %> | <%= i.focal_length %>mm | ISO<%= i.iso %> <% end %> diff --git a/www/photography/dates/2022-03-30.html b/www/photography/dates/2022-03-30.html index b166a799c..fd749cf3d 100644 --- a/www/photography/dates/2022-03-30.html +++ b/www/photography/dates/2022-03-30.html @@ -197,8 +197,8 @@
    - - + +
      diff --git a/www/photography/tags/landscape.html b/www/photography/tags/landscape.html index c8e699614..0538c77e2 100644 --- a/www/photography/tags/landscape.html +++ b/www/photography/tags/landscape.html @@ -229,8 +229,8 @@
    - - + +
      diff --git a/www/photography/tags/new-richmond.html b/www/photography/tags/new-richmond.html index de7db9117..b72c20229 100644 --- a/www/photography/tags/new-richmond.html +++ b/www/photography/tags/new-richmond.html @@ -537,8 +537,8 @@