From e556574261077c74f726a83a844a143d21690ad1 Mon Sep 17 00:00:00 2001 From: Lynne Date: Wed, 14 Nov 2018 00:37:59 +1000 Subject: [PATCH] enable CW by default --- web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web.py b/web.py index a933aca..4123451 100755 --- a/web.py +++ b/web.py @@ -16,7 +16,7 @@ import bcrypt cfg = json.load(open("meta.json")) scopes = ["read:accounts", "write:statuses"] settings = { - "cw": False, + "cw": True, # "disabled": False, } @@ -38,7 +38,7 @@ dc = db.cursor(dictionary=True) # | latest_post | tinytext | YES | | NULL | | # | last_check | int(11) | NO | | 0 | | # | time_between_checks | int(11) | NO | | 1 | | -# | settings | varchar(4096) | YES | | {"cw": false} | | +# | settings | varchar(4096) | YES | | {"cw": true} | | # +---------------------+---------------+------+-----+------------------------------------------------+-------+ c.execute("CREATE TABLE IF NOT EXISTS `data` (username VARCHAR(64) NOT NULL, instance VARCHAR(128) NOT NULL, password TINYTEXT NOT NULL, avi TEXT NOT NULL, secret TINYTEXT NOT NULL, client_id VARCHAR(128) NOT NULL, client_secret TINYTEXT NOT NULL, cc TINYTEXT, ccavi VARCHAR(128) DEFAULT 'https://lynnesbian.space/res/ceres/cc-smol.png', latest_post TINYTEXT, last_check INT DEFAULT 0 NOT NULL, time_between_checks INT DEFAULT %s NOT NULL, settings VARCHAR(4096) DEFAULT %s, PRIMARY KEY(username, instance))", (cfg['min_time_between_checks'], json.dumps(settings),))