mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 04:02:15 +01:00
Added is_imported flag to time entries
This commit is contained in:
committed by
Constantin Graf
parent
802d9558a3
commit
20f9b344f6
@@ -15,6 +15,8 @@ class TimeEntriesCreated extends ChartWidget
|
||||
|
||||
public ?string $filter = 'week';
|
||||
|
||||
protected static ?int $sort = 3;
|
||||
|
||||
protected function getData(): array
|
||||
{
|
||||
$filter = $this->filter;
|
||||
@@ -27,7 +29,9 @@ class TimeEntriesCreated extends ChartWidget
|
||||
} else {
|
||||
$start = now()->subWeek();
|
||||
}
|
||||
$trend = Trend::model(TimeEntry::class)
|
||||
$trend = Trend::query(
|
||||
TimeEntry::query()->where('is_imported', '=', false)
|
||||
)
|
||||
->between(
|
||||
start: $start,
|
||||
end: now(),
|
||||
|
||||
Reference in New Issue
Block a user