Add BookWyrm stats

This commit is contained in:
Daniel Mason 2023-03-26 08:58:36 +13:00
parent 853e7ea48f
commit c252860d87
Signed by: idanoo
GPG key ID: 387387CDBC02F132
4 changed files with 25 additions and 0 deletions

View file

@ -32,6 +32,7 @@ var (
MASTODON_IDENTIFIER: "https://mastodon.nz",
MOBILIZON_IDENTIFIER: "https://openevents.nz",
PEERTUBE_IDENTIFIER: "https://peertube.nz",
BOOKWYRM_IDENTIFIER: "https://bookworm.nz",
}
// Pixelfed
@ -59,4 +60,9 @@ var (
PEERTUBE_DB_SCHEMA string
PEERTUBE_USER_QUERY = "SELECT count(*) FROM \"user\" WHERE blocked = False;"
PEERTUBE_IDENTIFIER = "peertube"
// BookWyrm
BOOKWYRM_DB_SCHEMA string
BOOKWYRM_USER_QUERY = "SELECT count(*) FROM bookwyrm_user WHERE local = True AND is_active = True;"
BOOKWYRM_IDENTIFIER = "bookwyrm"
)