Remove duplicates in search results.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2019-09-20 18:19:33 +02:00
parent f9ecbdd470
commit 9d3ace6de0
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,7 @@ namespace Export
ostream &_out;
/*!
* @brief Sort entries from newest to oldest.
* @brief Sort entries from newest to oldest and remove duplicates.
*
* @param entries List of Database::entry to sort.
*

View File

@ -33,6 +33,8 @@ namespace Export
{
return (a.datetime > b.datetime);
});
entries.unique();
return entries;
}
}