Don't return empty entry if no data is matched.
All checks were successful
continuous-integration/drone/push Build is passing

Add check if number of rows is != 0.
This commit is contained in:
tastytea 2019-09-06 02:10:08 +02:00
parent 24ac4a4a25
commit 76ed9e9222
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -132,10 +132,8 @@ namespace remwharead
list<entry> entries;
while(!select.done())
while(!select.done() && select.execute() != 0)
{
select.execute();
entrybuf.datetime = string_to_timepoint(datetime, true);
vector<string> tags;