Website Summary Files Commits Branches @commit @diff @stats
path: root / models / webpage.php
diff options
context:
space:
mode:
Commit17d09f4b993767e7ad794d155cf66112a9bf3be2 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-01-19 19:46:18 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-01-19 19:46:18 +0200
Files5bc75a0a6ad648634ca5d3f08a6f3c7fac4c9fb7 /models/webpage.php
nowayforward_human-17d09f4b993767e7ad794d155cf66112a9bf3be2.tar
nowayforward_human-17d09f4b993767e7ad794d155cf66112a9bf3be2.tar.gz
nowayforward_human-17d09f4b993767e7ad794d155cf66112a9bf3be2.zip
Parentbbd5142fcab37e34ae3d208c43e87d65e06feb71 (diff)
feat(models/webpage): Fix logic for get_all
1 files changed, 2 insertions, 1 deletions
-rw-r--r--models/webpage.php3
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'
);
}