diff options
| author | Syndamia <kamen@syndamia.com> | 2025-01-19 19:46:18 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-01-19 19:46:18 +0200 |
| commit | 17d09f4b993767e7ad794d155cf66112a9bf3be2 (patch) | |
| tree | 5bc75a0a6ad648634ca5d3f08a6f3c7fac4c9fb7 /models/webpage.php | |
| parent | bbd5142fcab37e34ae3d208c43e87d65e06feb71 (diff) | |
| download | nowayforward_human-17d09f4b993767e7ad794d155cf66112a9bf3be2.tar nowayforward_human-17d09f4b993767e7ad794d155cf66112a9bf3be2.tar.gz nowayforward_human-17d09f4b993767e7ad794d155cf66112a9bf3be2.zip | |
feat(models/webpage): Fix logic for get_all
Diffstat (limited to 'models/webpage.php')
| -rw-r--r-- | models/webpage.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/webpage.php b/models/webpage.php index 9dcc5ae..a7fa1b9 100644 --- a/models/webpage.php +++ b/models/webpage.php @@ -29,7 +29,8 @@ class Webpage extends Table { return Table::_get_all( 'Webpages', 'Database\Webpage', - "GROUP BY URL ORDER BY Visits DESC, Date DESC LIMIT $count" + "GROUP BY URL ORDER BY Visits DESC, Date DESC LIMIT $count", + 'WID,Path,URL,Date,MAX(Visits) as Visits,RequesterUID' ); } |
