mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
Add tag count fields
This commit is contained in:
parent
3f1f208916
commit
ac3b15b1e2
1 changed files with 17 additions and 1 deletions
|
@ -66,10 +66,26 @@ defmodule Philomena.Images.Query do
|
|||
end
|
||||
end
|
||||
|
||||
defp tag_count_fields do
|
||||
[
|
||||
"body_type_tag_count",
|
||||
"error_tag_count",
|
||||
"character_tag_count",
|
||||
"content_fanmade_tag_count",
|
||||
"content_official_tag_count",
|
||||
"oc_tag_count",
|
||||
"origin_tag_count",
|
||||
"rating_tag_count",
|
||||
"species_tag_count",
|
||||
"spoiler_tag_count"
|
||||
]
|
||||
end
|
||||
|
||||
defp anonymous_fields do
|
||||
[
|
||||
int_fields:
|
||||
~W(id width height comment_count score upvotes downvotes faves uploader_id faved_by_id tag_count pixels size),
|
||||
~W(id width height score upvotes downvotes faves uploader_id faved_by_id pixels size comment_count source_count tag_count) ++
|
||||
tag_count_fields(),
|
||||
float_fields: ~W(aspect_ratio wilson_score duration),
|
||||
date_fields: ~W(created_at updated_at first_seen_at),
|
||||
literal_fields:
|
||||
|
|
Loading…
Reference in a new issue