stash/pkg/sqlite
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
..
blob Developer option: extra blob paths (#4566) 2024-02-16 12:39:45 +11:00
migrations Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
anonymise.go Multiple image URLs (#4000) 2023-09-12 13:31:53 +10:00
anonymise_test.go Add anonymise database task (#3186) 2022-12-23 09:15:27 +11:00
batch.go Handle large and all entity queries (#3544) 2023-03-16 09:08:21 +11:00
blob.go Add Clean generated files task (#4607) 2024-02-23 15:56:00 +11:00
blob_migrate.go Add filesystem based blob storage (#3187) 2023-03-17 10:52:49 +11:00
blob_test.go Add filesystem based blob storage (#3187) 2023-03-17 10:52:49 +11:00
common.go File storage rewrite (#2676) 2022-09-06 07:03:42 +00:00
criterion_handlers.go added support for image orientation filter (#4404) 2024-01-16 13:50:17 +11:00
custom_migrations.go File storage rewrite (#2676) 2022-09-06 07:03:42 +00:00
database.go Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
date.go SQLite model refactoring, part 2 (#3839) 2023-07-13 12:15:02 +10:00
driver.go Sort special characters before numbers (#3829) 2023-06-22 09:51:21 +10:00
file.go Support setting file fingerprints (#4376) 2023-12-22 14:07:10 +11:00
file_test.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
filter.go Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
filter_internal_test.go Restructure data layer (#2532) 2022-09-06 07:03:40 +00:00
fingerprint.go Support setting file fingerprints (#4376) 2023-12-22 14:07:10 +11:00
folder.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
folder_test.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
functions.go Correct title ordering for objects without titles (#3244) 2022-12-09 08:29:34 +11:00
gallery.go Add Studio Code and Photographer to Galleries. (#4195) 2023-11-28 15:05:33 +11:00
gallery_chapter.go Genericise sliceutil functions (#4253) 2023-11-02 08:58:32 +11:00
gallery_chapter_test.go SQLite model refactoring (#3791) 2023-06-15 12:46:09 +10:00
gallery_test.go Add Studio Code and Photographer to Galleries. (#4195) 2023-11-28 15:05:33 +11:00
history.go Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
image.go Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
image_test.go Add Details, Studio Code, and Photographer to Images (#4217) 2023-11-28 15:45:07 +11:00
movies.go Genericise sliceutil functions (#4253) 2023-11-02 08:58:32 +11:00
movies_test.go Saved filter refactor (#4054) 2023-09-01 10:04:56 +10: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
performer_test.go Remove deprecated graphql fields (#4064) 2023-10-17 11:59:35 +11:00
phash.go Phash distance filter (#3596) 2023-04-17 15:36:51 +10:00
query.go Error reliably on invalid filter (#3428) 2023-02-13 12:14:41 +11:00
record.go Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
regex.go Update a number of dependencies (incl. CVE fixes) (#4107) 2023-10-26 16:24:32 +11:00
repository.go Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
saved_filter.go Genericise sliceutil functions (#4253) 2023-11-02 08:58:32 +11:00
saved_filter_test.go Saved filter refactor (#4054) 2023-09-01 10:04:56 +10:00
scene.go Add galleries filter to scenes (#4632) 2024-03-14 10:17:57 +11:00
scene_marker.go include primary tag name in search and sort (#4606) 2024-02-22 11:18:29 +11:00
scene_marker_test.go Genericise sliceutil functions (#4253) 2023-11-02 08:58:32 +11:00
scene_test.go Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
setup_test.go Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
sql.go Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
stash_id_test.go [Files Refactor] Performance tuning (#2819) 2022-09-06 07:03:42 +00:00
studio.go Studio child filter and sort (#4479) 2024-02-06 13:24:00 +11:00
studio_test.go Remove deprecated graphql fields (#4064) 2023-10-17 11:59:35 +11:00
table.go Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
tables.go Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
tag.go Genericise sliceutil functions (#4253) 2023-11-02 08:58:32 +11:00
tag_test.go SQLite model refactoring (#3791) 2023-06-15 12:46:09 +10:00
timestamp.go Scene play and o-counter history view and editing (#4532) 2024-02-22 11:28:18 +11:00
transaction.go Add Clean generated files task (#4607) 2024-02-23 15:56:00 +11:00
transaction_test.go Fix concurrent test timeout 2022-11-30 09:25:12 +11:00
tx.go Rebuild association tables, ensure file-system-based galleries cannot be changed (#2955) 2022-09-30 09:18:58 +10:00
values.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00