Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | In the previous check-in, fix the subscriber count after doing a purge. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
8ccab68fc6f679d16f657660be3eb709 |
User & Date: | drh 2020-03-27 22:25:20 |
Context
2020-03-28
| ||
18:21 | Add email-url, email-admin, and email-subname to the settings that can be managed by the "fossil alert setting" command. ... (check-in: a0ae0c9f user: drh tags: trunk) | |
2020-03-27
| ||
22:25 | In the previous check-in, fix the subscriber count after doing a purge. ... (check-in: 8ccab68f user: drh tags: trunk) | |
22:23 | Add the ability to purge old pending subscriptions from the /subscribers page. ... (check-in: 8c40c38f user: drh tags: trunk) | |
Changes
Changes to src/alerts.c.
︙ | ︙ | |||
1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 | "DELETE FROM subscriber" " WHERE NOT sverified AND mtime<0+strftime('%%s','now','-1 day')" ); nNewPending = db_int(0, "SELECT count(*) FROM subscriber" " WHERE NOT sverified"); nDel = nPending - nNewPending; nPending = nNewPending; } if( nPending>0 ){ @ <h1>%,d(nTotal) Subscribers, %,d(nPending) Pending</h1> if( nDel==0 && 0<db_int(0,"SELECT count(*) FROM subscriber" " WHERE NOT sverified AND mtime<0+strftime('%%s','now','-1 day')") ){ style_submenu_element("Purge Pending","subscribers?purge"); | > | 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 | "DELETE FROM subscriber" " WHERE NOT sverified AND mtime<0+strftime('%%s','now','-1 day')" ); nNewPending = db_int(0, "SELECT count(*) FROM subscriber" " WHERE NOT sverified"); nDel = nPending - nNewPending; nPending = nNewPending; nTotal -= nDel; } if( nPending>0 ){ @ <h1>%,d(nTotal) Subscribers, %,d(nPending) Pending</h1> if( nDel==0 && 0<db_int(0,"SELECT count(*) FROM subscriber" " WHERE NOT sverified AND mtime<0+strftime('%%s','now','-1 day')") ){ style_submenu_element("Purge Pending","subscribers?purge"); |
︙ | ︙ |