From 01a61a5b021df73557a87ce9baf13e4b75947873 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Thu, 4 Jul 2024 16:54:08 -0300 Subject: [PATCH] Not to fix --- src/daemon/funko.cr | 3 +-- src/daemon/proxyconf.cr | 1 + src/funko.cr | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/daemon/funko.cr b/src/daemon/funko.cr index 99f92a0..3ba07ec 100644 --- a/src/daemon/funko.cr +++ b/src/daemon/funko.cr @@ -91,8 +91,7 @@ module Funko end if env.params.query.fetch("format", "json") == "html" - render "src/views/funkos.ecr" - else + render "src/views/funkos.ecr" else result.to_json end end diff --git a/src/daemon/proxyconf.cr b/src/daemon/proxyconf.cr index b2621aa..6ccc5fd 100644 --- a/src/daemon/proxyconf.cr +++ b/src/daemon/proxyconf.cr @@ -1,4 +1,5 @@ require "docr" +require "funko" require "kemal" module Proxy diff --git a/src/funko.cr b/src/funko.cr index 5b37d32..70b0090 100644 --- a/src/funko.cr +++ b/src/funko.cr @@ -166,7 +166,6 @@ module Funko end # Return a list of image IDs for this funko, most recent first - # FIXME: use self.images and add filters def image_history docker_api = Docr::API.new(Docr::Client.new) begin