Commit e41c4440 authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

tracker3: Coalesce nie:contentLastModified and nfo:fileLastModified

The former refers to the last modification date as coming from the file
metadata, the latter comes from struct stat's mtime. Coalesce both when
querying, with a preference for the metadata source.

Fixes: #74
parent 6412bc37
Pipeline #208188 passed with stage
in 14 minutes and 59 seconds
......@@ -255,7 +255,7 @@ grl_tracker_setup_key_mappings (void)
insert_key_mapping_with_setter (GRL_METADATA_KEY_MODIFICATION_DATE,
"COALESCE(nie:contentLastModified(?urn), (select ?lm { ?urn nie:isStoredAs/nfo:fileLastModified ?lm }))",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment