From c865e121a3fd1177bb2d26f28f55450f57215ac8 Mon Sep 17 00:00:00 2001 From: Timo Klabbers Date: Fri, 4 Nov 2022 23:53:07 +0100 Subject: [PATCH 1/2] Remove users longer than 3 months for longer lists --- application/pages/default/ConsumePage.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/application/pages/default/ConsumePage.php b/application/pages/default/ConsumePage.php index 2546f018..fb3d60b9 100755 --- a/application/pages/default/ConsumePage.php +++ b/application/pages/default/ConsumePage.php @@ -39,20 +39,35 @@ public function beforeView() usort($byFirstName, function($a, $b) { return strcmp(strtolower($a[User::FIELD_FIRST_NAME]), strtolower($b[User::FIELD_FIRST_NAME])); }); + $byFirstName = array_filter($byFirstName, function($a) { + $timeStamp = strtotime($a['time']); + $cutOffDate = strtotime('-6 months'); + + return ($timeStamp > $cutOffDate); + }); + $byLastName = $allUsersByRole[Role::ROLE_USER]; usort($byLastName, function($a, $b) { return strcmp(strtolower($a[User::FIELD_LAST_NAME]), strtolower($b[User::FIELD_LAST_NAME])); }); + $byLastName = array_filter($byLastName, function($a) { + $timeStamp = strtotime($a['time']); + $cutOffDate = strtotime('-6 months'); + + return ($timeStamp > $cutOffDate); + }); + $byAmount = $allUsersByRole[Role::ROLE_USER]; usort($byAmount, function($a, $b) { return $b['amount'] - $a['amount']; }); + $byLatest = $allUsersByRole[Role::ROLE_USER]; usort($byLatest, function($a, $b) { $timeStamp1 = strtotime($a['time']); $timeStamp2 = strtotime($b['time']); return $timeStamp2 - $timeStamp1; - });; + }); $tabs = [ 'ordered-first-name' => [ From 3000264587dcc3f8fb66572fe97e92f0f8cb9c86 Mon Sep 17 00:00:00 2001 From: omit01 Date: Wed, 21 Oct 2026 18:57:50 +0200 Subject: [PATCH 2/2] Use upstream repository identity in setup metadata --- README.md | 2 +- composer.json | 2 +- composer.lock | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d14fbf27..17d4d3b2 100755 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Many use-cases can be imagined, in general LISA gives each user an integer sized ```bash # Clone the repository -git clone https://github.com/omit01/LISA.git && cd LISA +git clone https://github.com/Addono/LISA.git && cd LISA # Install dependencies npm ci diff --git a/composer.json b/composer.json index 96a61abd..4ed6fd43 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "omit01/lisa", + "name": "addono/lisa", "description": "LISA consumption administration", "type": "project", "require": { diff --git a/composer.lock b/composer.lock index 7f5501ed..e0636aad 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "aa1f9f32bb30c6b0209b2df8919d44ac", + "content-hash": "dabb89d1cec841d31e167d83bfa2abfa", "packages": [ { "name": "codeigniter4/framework",