1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Use higher ranked photos first for face sample #587

This commit is contained in:
Patrik J. Braun 2023-09-06 22:56:16 +02:00
parent f1b2f93c09
commit b62296de7f

View File

@ -38,7 +38,8 @@ export class PersonManager implements IObjectManager{
'(Select person_junction_table.id from media_entity ' + '(Select person_junction_table.id from media_entity ' +
'left join person_junction_table on media_entity.id = person_junction_table.mediaId ' + 'left join person_junction_table on media_entity.id = person_junction_table.mediaId ' +
'where person_junction_table.personId=person_entry.id ' + 'where person_junction_table.personId=person_entry.id ' +
'order by media_entity.metadataCreationdate desc ' + 'order by media_entity.metadataRating desc, ' +
'media_entity.metadataCreationdate desc ' +
'limit 1)' 'limit 1)'
); );
} }