Skip to content

Commit

Permalink
count only time spent - without docker report, zubroide#63, zubroide#36
Browse files Browse the repository at this point in the history
  • Loading branch information
danielciobanica committed Aug 28, 2020
1 parent 4d85477 commit 449cf08
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/Console/Commands/StatSpentTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,16 @@ public function handle()
$stat = [];
foreach ($data as $item) {
$stat[] = [
$item['gitlab_created_at'],
$item['project'],
$item['spent_at'],
$item['project'],
'#' . $item['iid'] . ' ' . $item['issue_title'],
$item['hours'],
// $item['note_description'],
$item['note_description'],
];
$total += $item['hours'];
}

$this->table(['gitlab_created_at', 'project', 'issue', 'hours', 'description'], $stat);
// $this->table(['spent_at', 'project', 'issue', 'hours', 'description'], $stat);
$this->table(['spent_at', 'project', 'issue', 'hours', 'description'], $stat);

$this->warn(sprintf('Total spent time: %s', TimeHelper::getHoursIntervalAsString($total)));
}
Expand Down

0 comments on commit 449cf08

Please sign in to comment.