aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/tables.py
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-07-12 16:55:02 +0000
committerGravatar Johannes Christ <[email protected]>2018-07-12 16:55:02 +0000
commit156401a26fe88ff9bdcbbbdca94f217fb9d337e3 (patch)
treeae37ef921660cd906cb409e9a3283bb6f0ef1fc2 /pysite/tables.py
parentCheck that the page is not NoneType before checking that the page has no cont... (diff)
parentAdd the big-brother API. (diff)
Merge branch 'feature/add-big-brother-api' into 'master'
Add the big-brother API. See merge request python-discord/projects/site!20
Diffstat (limited to 'pysite/tables.py')
-rw-r--r--pysite/tables.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pysite/tables.py b/pysite/tables.py
index 617a20f0..8f849664 100644
--- a/pysite/tables.py
+++ b/pysite/tables.py
@@ -257,5 +257,13 @@ TABLES = {
"key", # str
"value" # any
])
+ ),
+
+ "watched_users": Table( # Users being monitored by the bot's BigBrother cog
+ primary_key="user_id",
+ keys=sorted([
+ "user_id",
+ "channel_id"
+ ])
)
}