Skip to content

Commit

Permalink
Merge pull request #236 from piql/release-v1.0/fix-dashboard
Browse files Browse the repository at this point in the history
Release v1.0/fix dashboard
  • Loading branch information
hakonlarsson authored Oct 16, 2020
2 parents 9b4f4d0 + 09e5570 commit 1f7ed75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/Stats/StatisticsData.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class StatisticsData

public function monthlyIngested($userId)
{
$first = new \DateTime('-12 months');
$last = new \DateTime();
$first = new \DateTime('-11 months');
$last = new \DateTime('+1 months');

$interval = DateInterval::createFromDateString('1 month');
$period = new DatePeriod($first, $interval, $last);
Expand Down Expand Up @@ -59,8 +59,8 @@ private function monthlyOfflineIngested($date, $userId)

public function monthlyAccessed($userId)
{
$first = new \DateTime('-12 months');
$last = new \DateTime();
$first = new \DateTime('-11 months');
$last = new \DateTime('+1 months');

$interval = DateInterval::createFromDateString('1 month');
$period = new DatePeriod($first, $interval, $last);
Expand Down
2 changes: 1 addition & 1 deletion deploy/logstash/conf.d/inputs/ingested_file_formats.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ input {
path not like '%/data/objects/submissionDocumentation/%'
)
) fo
left join bags on bags.id = fo.storable_id
left join aips a on a.id = fo.storable_id
group by mime_type, owner
) ingested_file_formats"
schedule => "* * * * *"
Expand Down

0 comments on commit 1f7ed75

Please sign in to comment.