stash/pkg/models
randemgame 3d0a8f653a
Added Sort Performers by Last O At / Last Played At / Play Count and Added Filter Performers by Play Count. Changes to display O Count rather than O-Counter for better consistency. Grammar fixes for 'Interactive Speed' and 'pHash'. (#4649)
* Sort Performers by Last O / View

Added 2 New Sorts 'Last O At' and 'Last Played At' for Performers

* Filter Performers by Play Count

Was not sure whether to label this 'views' as the code does, or 'plays' but chose the latter as it gives parity across the scenes and performers filters.

* Sort Performers by Play Count

Reutilised the prior selectPerformerLastOAtSQL code that was used to filter by play count to additionally provide useful sorting options.

* Replaced O-Counter with O Count

To better match other sort and filter options like Gallery Count, Image Count, Play Count, Scene Count, Tag Count, File Count, Performer Count and Play Count, we should really use O Count rather than O-Counter for increased legibility and coherence.

* Title Case on 'Interactive speed' and correct capitalization for 'phash'

Every other filter/sort option is using Title Case other than 'Interactive speed' which stands out as incorrect. Also, fixing the correct mid-word capitalization on phash to pHash.

* Formatting

Formatted source code and Ran all tests
2024-03-14 10:32:08 +11:00
..
json Restructure ffmpeg (#2392) 2022-04-18 10:50:10 +10:00
jsonschema Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
mocks Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
paths Rename marker folders when hash changes (#3988) 2023-08-02 16:15:37 +10:00
date.go Fix performer validation (#4248) 2023-11-02 16:23:54 +11:00
errors.go SQLite model refactoring, part 2 (#3839) 2023-07-13 12:15:02 +10:00
file.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
filename_parser.go Minor refactor (#3924) 2023-07-26 09:15:55 +10:00
filter.go added support for image orientation filter (#4404) 2024-01-16 13:50:17 +11:00
find_filter.go Handle large and all entity queries (#3544) 2023-03-16 09:08:21 +11:00
fingerprint.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
fingerprint_test.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
fs.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
gallery.go Add Studio Code and Photographer to Galleries. (#4195) 2023-11-28 15:05:33 +11:00
generate.go Add option to generate image thumbnails during generate (#4602) 2024-02-22 11:19:23 +11:00
image.go restore image performer age filter (#4601) 2024-02-21 11:22:04 +11:00
import.go Separate graphql API from rest of the system (#2503) 2022-09-06 07:03:40 +00:00
model_file.go Fix images with , character not rendering (#4636) 2024-02-29 11:28:11 +11:00
model_folder.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
model_gallery.go Add Studio Code and Photographer to Galleries. (#4195) 2023-11-28 15:05:33 +11:00
model_gallery_chapter.go Model refactor, part 2 (#4092) 2023-09-11 12:24:15 +10:00
model_image.go Add Details, Studio Code, and Photographer to Images (#4217) 2023-11-28 15:45:07 +11:00
model_joins.go Model refactor, part 2 (#4092) 2023-09-11 12:24:15 +10:00
model_movie.go Model refactor, part 3 (#4152) 2023-10-16 14:26:34 +11:00
model_performer.go Model refactor, part 2 (#4092) 2023-09-11 12:24:15 +10:00
model_saved_filter.go Model refactor, part 2 (#4092) 2023-09-11 12:24:15 +10:00
model_scene.go Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
model_scene_marker.go Model refactor, part 2 (#4092) 2023-09-11 12:24:15 +10:00
model_scene_test.go Remove deprecated graphql fields (#4064) 2023-10-17 11:59:35 +11:00
model_scraped_item.go Model refactor, part 2 (#4092) 2023-09-11 12:24:15 +10:00
model_scraped_item_test.go Fix bulk performer tagger (#4024) 2023-08-17 10:21:24 +10:00
model_studio.go Model refactor, part 2 (#4092) 2023-09-11 12:24:15 +10:00
model_tag.go Model refactor, part 2 (#4092) 2023-09-11 12:24:15 +10:00
movie.go Remove deprecated graphql fields (#4064) 2023-10-17 11:59:35 +11:00
orientation.go added support for image orientation filter (#4404) 2024-01-16 13:50:17 +11:00
package.go Scraper and plugin manager (#4242) 2023-11-22 10:01:11 +11:00
performer.go Added Sort Performers by Last O At / Last Played At / Play Count and Added Filter Performers by Play Count. Changes to display O Count rather than O-Counter for better consistency. Grammar fixes for 'Interactive Speed' and 'pHash'. (#4649) 2024-03-14 10:32:08 +11:00
query.go Show duration and filesize in results (#1776) 2021-10-25 11:40:13 +11:00
rating.go Stash rating system (#2830) 2022-11-16 09:31:44 +11:00
rating_test.go Stash rating system (#2830) 2022-11-16 09:31:44 +11:00
relationships.go Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
repository.go Add Clean generated files task (#4607) 2024-02-23 15:56:00 +11:00
repository_blob.go Add Clean generated files task (#4607) 2024-02-23 15:56:00 +11:00
repository_file.go Support setting file fingerprints (#4376) 2023-12-22 14:07:10 +11:00
repository_folder.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
repository_gallery.go Gallery URLs (#4114) 2023-09-25 12:27:20 +10:00
repository_gallery_chapter.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
repository_image.go Include image total O-Count on stats page (#4386) 2023-12-21 16:19:41 +11:00
repository_movie.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
repository_performer.go Fix performer validation (#4248) 2023-11-02 16:23:54 +11:00
repository_scene.go Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
repository_scene_marker.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
repository_studio.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
repository_tag.go Add Icons to tags if they have parent/child tags (#3931) 2023-09-20 14:08:00 +10:00
resolution.go Make displayed resolution information coherent for 2:1/VR files (#3798) 2023-06-16 10:19:46 +10:00
saved_filter.go SQLite model refactoring (#3791) 2023-06-15 12:46:09 +10:00
scene.go Add galleries filter to scenes (#4632) 2024-03-14 10:17:57 +11:00
scene_marker.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
search.go Add search string parsing (#1982) 2021-11-22 14:59:22 +11:00
search_test.go Add search string parsing (#1982) 2021-11-22 14:59:22 +11:00
stash_box.go Separate graphql API from rest of the system (#2503) 2022-09-06 07:03:40 +00:00
stash_ids.go Fix batch performer tagging with multiple endpoints (#3548) 2023-03-17 15:07:53 +11:00
studio.go Studio child filter and sort (#4479) 2024-02-06 13:24:00 +11:00
tag.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
update.go Fix performer validation (#4248) 2023-11-02 16:23:54 +11:00
update_test.go Fix performer validation (#4248) 2023-11-02 16:23:54 +11:00
value.go Track watch activity for scenes. (#3055) 2022-11-21 12:55:15 +11:00