aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dbstore')
-rw-r--r--dbstore/peewee_store.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/dbstore/peewee_store.py b/dbstore/peewee_store.py
index 37b8c01..00897d7 100644
--- a/dbstore/peewee_store.py
+++ b/dbstore/peewee_store.py
@@ -1,5 +1,10 @@
1from peewee import * 1from peewee import *
2 2
3TOOT_VISIBILITY_PUBLIC = "public"
4TOOT_VISIBILITY_UNLISTED = "unlisted"
5TOOT_VISIBILITY_PRIVATE = "private"
6
7
3db = SqliteDatabase("checkinbot.db") 8db = SqliteDatabase("checkinbot.db")
4db.connect(reuse_if_open=True) 9db.connect(reuse_if_open=True)
5 10
@@ -16,6 +21,7 @@ class User(BaseModel):
16 state = CharField(max_length=128) 21 state = CharField(max_length=128)
17 client_id = CharField(max_length=128) 22 client_id = CharField(max_length=128)
18 client_secret = CharField(max_length=128) 23 client_secret = CharField(max_length=128)
24 toot_visibility = CharField(max_length=128, default=TOOT_VISIBILITY_PRIVATE)
19 25
20 26
21class Location(BaseModel): 27class Location(BaseModel):
Powered by cgit v1.2.3 (git 2.41.0)