Add ex_slop, configure it, run it and fix issues
This commit is contained in:
@@ -281,11 +281,9 @@ defmodule MusicLibrary.ScrobbleRules do
|
||||
{album_rules, artist_rules} =
|
||||
Enum.split_with(enabled_rules, fn rule -> rule.type == :album end)
|
||||
|
||||
# Apply all album rules in one query
|
||||
album_result =
|
||||
case apply_all_album_rules(album_rules) do
|
||||
{:ok, count} ->
|
||||
# Return the count for each album rule (total updated)
|
||||
# Note: this returns the same count for each rule since they're applied together
|
||||
Enum.map(album_rules, fn rule ->
|
||||
{:ok, {rule.type, rule.match_value, count}}
|
||||
@@ -297,11 +295,9 @@ defmodule MusicLibrary.ScrobbleRules do
|
||||
end)
|
||||
end
|
||||
|
||||
# Apply all artist rules in one query
|
||||
artist_result =
|
||||
case apply_all_artist_rules(artist_rules) do
|
||||
{:ok, count} ->
|
||||
# Return the count for each artist rule (total updated)
|
||||
# Note: this returns the same count for each rule since they're applied together
|
||||
Enum.map(artist_rules, fn rule ->
|
||||
{:ok, {rule.type, rule.match_value, count}}
|
||||
|
||||
@@ -1,13 +1,5 @@
|
||||
defmodule MusicLibraryWeb.Layouts do
|
||||
@moduledoc """
|
||||
This module holds different layouts used by your application.
|
||||
|
||||
See the `layouts` directory for all templates available.
|
||||
The "root" layout is a skeleton rendered as part of the
|
||||
application router. The "app" layout is set as the default
|
||||
layout on both `use MusicLibraryWeb, :controller` and
|
||||
`use MusicLibraryWeb, :live_view`.
|
||||
"""
|
||||
@moduledoc false
|
||||
use MusicLibraryWeb, :html
|
||||
|
||||
import MusicLibraryWeb.UniversalSearchLive.Index, only: [universal_search_trigger: 1]
|
||||
|
||||
Reference in New Issue
Block a user