]> Some of my projects - localmylist.git/commitdiff
Add x-jat to the languages used for alternative title filtering.
authorAPTX <marek321@gmail.com>
Sun, 14 Jun 2015 11:19:51 +0000 (13:19 +0200)
committerAPTX <marek321@gmail.com>
Sun, 14 Jun 2015 11:19:51 +0000 (13:19 +0200)
x-jat has all some commonly used abbreviations.
This probably should be made configurable in the future.

localmylist/dynamicmodel/types.cpp

index 6376afa6bdf7e7b102f6c42630a252722dca2aab..6b2f5cbeb1608de8c734d1f9cf49f4cfe35a474a 100644 (file)
@@ -115,7 +115,7 @@ QString AnimeType::additionalColumns() const
                                                ) AS sq) AS sq) AS my_state,
                (SELECT string_agg(at.title, '''') -- Quotes are replaced by backticks in everything returned by anidb
                        FROM anime_title at
-                               WHERE at.aid = a.aid AND at.language = 'en') AS alternate_titles,
+                               WHERE at.aid = a.aid AND (at.language = 'en' OR at.language = 'x-jat')) AS alternate_titles,
                %1
                                )"}.arg(Database::animeFields());
 }