Skip to content

Commit f1dea1d

Browse files
fix various compiler warnings and errors
1 parent 314fedb commit f1dea1d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/kaffy/resource_query.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@ defmodule Kaffy.ResourceQuery do
177177
term_type == :string do
178178
term = "%#{term}%"
179179

180-
from([..., r] in current_query,
180+
from(r in current_query,
181181
or_where: ilike(type(field(r, ^f), :string), ^term)
182182
)
183183
else
184184
if Kaffy.ResourceSchema.field_type(schema, f) in [:id, :integer] and
185185
term_type == :decimal do
186186
current_query
187187
else
188-
from([..., r] in current_query,
188+
from(r in current_query,
189189
or_where: field(r, ^f) == ^term
190190
)
191191
end

lib/kaffy_web/templates/home/_chart.html.eex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<div class="clearfix">
1010
<h4 class="card-title float-left"><%= @widget.title %></h4>
1111
</div>
12-
<%# <div class="kaffy-chart-container" style="position:relative;height:200px;"> %>
12+
<% # <div class="kaffy-chart-container" style="position:relative;height:200px;"> %>
1313
<canvas id="<%= :crypto.strong_rand_bytes(6) |> Base.url_encode64() %>" class="mt-2"></canvas>
14-
<%# </div> %>
14+
<% # </div> %>
1515
</div>
1616
</div>
1717
</div>

0 commit comments

Comments
 (0)