Browse Source

enable CW by default

master
Lynne Megido 1 year ago
parent
commit
e556574261
Signed by: Lynne <thecoolone3@gmail.com> GPG Key ID: FB7B970303ACE499
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      web.py

+ 2
- 2
web.py View File

@@ -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),))


Loading…
Cancel
Save