mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdReportDay: Corrected filter default
This commit is contained in:
parent
bf7b48690b
commit
70ba611f66
1 changed files with 5 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include <cmake.h>
|
#include <cmake.h>
|
||||||
#include <Palette.h>
|
#include <Palette.h>
|
||||||
|
#include <Range.h>
|
||||||
#include <commands.h>
|
#include <commands.h>
|
||||||
#include <timew.h>
|
#include <timew.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -37,7 +38,10 @@ int CmdReportDay (
|
||||||
Database& database)
|
Database& database)
|
||||||
{
|
{
|
||||||
auto filter = createFilterIntervalFromCLI (cli);
|
auto filter = createFilterIntervalFromCLI (cli);
|
||||||
// TODO If filter is empty, choose 'today'.
|
|
||||||
|
// If filter is empty, choose 'today'.
|
||||||
|
if (! filter.range.started ())
|
||||||
|
filter.range = Range (Datetime ("today"), Datetime ("tomorrow"));
|
||||||
|
|
||||||
auto timeline = createTimelineFromData (rules, database, filter);
|
auto timeline = createTimelineFromData (rules, database, filter);
|
||||||
auto tracked = timeline.tracked (rules);
|
auto tracked = timeline.tracked (rules);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue