summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-10-28 09:49:10 +0100
committerGravatar GitHub <noreply@github.com> 2018-10-28 09:49:10 +0100
commite04804d0f67dd43fd3f072b9a127768ee7b7b56c (patch)
treea49023ed25aab7fb1c1aafe749f7d462de0027b2 /cli
parent44bd07e506ade204151c276fdc05994d51efdd7a (diff)
parent4234dfe0d72b61fe931d2c76a1d8a335ce65a209 (diff)
Merge pull request #2049 from FreshRSS/dev1.12.0
FreshRSS 1.12.0
Diffstat (limited to 'cli')
-rw-r--r--cli/README.md2
-rwxr-xr-xcli/user-info.php5
2 files changed, 5 insertions, 2 deletions
diff --git a/cli/README.md b/cli/README.md
index c314bd388..148e15be5 100644
--- a/cli/README.md
+++ b/cli/README.md
@@ -72,7 +72,7 @@ cd /usr/share/FreshRSS
# --user can be a username, or '*' to loop on all users
# Returns: 1) a * iff the user is admin, 2) the name of the user,
# 3) the date/time of last user action, 4) the size occupied,
-# and the number of: 5) categories, 6) feeds, 7) read articles, 8) unread articles, and 9) favourites
+# and the number of: 5) categories, 6) feeds, 7) read articles, 8) unread articles, 9) favourites, and 10) tags
./cli/db-optimize.php --user username
# Optimize database (reduces the size) for a given user (perform `OPTIMIZE TABLE` in MySQL, `VACUUM` in SQLite)
diff --git a/cli/user-info.php b/cli/user-info.php
index 18a415217..043bebf7c 100755
--- a/cli/user-info.php
+++ b/cli/user-info.php
@@ -16,9 +16,10 @@ foreach ($users as $username) {
$username = cliInitUser($username);
echo $username === FreshRSS_Context::$system_conf->default_user ? '*' : ' ', "\t";
- $catDAO = new FreshRSS_CategoryDAO();
+ $catDAO = FreshRSS_Factory::createCategoryDao();
$feedDAO = FreshRSS_Factory::createFeedDao($username);
$entryDAO = FreshRSS_Factory::createEntryDao($username);
+ $tagDAO = FreshRSS_Factory::createTagDao($username);
$databaseDAO = FreshRSS_Factory::createDatabaseDAO($username);
$nbEntries = $entryDAO->countUnreadRead();
@@ -34,6 +35,7 @@ foreach ($users as $username) {
$nbEntries['read'], " reads\t",
$nbEntries['unread'], " unreads\t",
$nbFavorites['all'], " favourites\t",
+ $tagDAO->count(), " tags\t",
"\n";
} else {
echo
@@ -45,6 +47,7 @@ foreach ($users as $username) {
$nbEntries['read'], "\t",
$nbEntries['unread'], "\t",
$nbFavorites['all'], "\t",
+ $tagDAO->count(), "\t",
"\n";
}
}