Fossil SCM

Show the number of pending subscriptions in the subscription stats.

drh 2020-03-27 11:13 trunk
Commit 02ad349134614040b040599d675375b41cfa0998dc9610c50685a3162011df5a
1 file changed +1 -1
+1 -1
--- src/stat.c
+++ src/stat.c
@@ -112,11 +112,11 @@
112112
@ <tr><th>Subscribers:</th><td>
113113
}
114114
nSub = db_int(0, "SELECT count(*) FROM subscriber");
115115
nASub = db_int(0, "SELECT count(*) FROM subscriber WHERE sverified"
116116
" AND NOT sdonotcall AND length(ssub)>1");
117
- @ %,d(nASub) active, %,d(nSub) total
117
+ @ %,d(nASub) active, %,d(nSub-nASub) pending, %,d(nSub) total
118118
@ </td></tr>
119119
}
120120
121121
/*
122122
** WEBPAGE: stat
123123
--- src/stat.c
+++ src/stat.c
@@ -112,11 +112,11 @@
112 @ <tr><th>Subscribers:</th><td>
113 }
114 nSub = db_int(0, "SELECT count(*) FROM subscriber");
115 nASub = db_int(0, "SELECT count(*) FROM subscriber WHERE sverified"
116 " AND NOT sdonotcall AND length(ssub)>1");
117 @ %,d(nASub) active, %,d(nSub) total
118 @ </td></tr>
119 }
120
121 /*
122 ** WEBPAGE: stat
123
--- src/stat.c
+++ src/stat.c
@@ -112,11 +112,11 @@
112 @ <tr><th>Subscribers:</th><td>
113 }
114 nSub = db_int(0, "SELECT count(*) FROM subscriber");
115 nASub = db_int(0, "SELECT count(*) FROM subscriber WHERE sverified"
116 " AND NOT sdonotcall AND length(ssub)>1");
117 @ %,d(nASub) active, %,d(nSub-nASub) pending, %,d(nSub) total
118 @ </td></tr>
119 }
120
121 /*
122 ** WEBPAGE: stat
123

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button