1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 16:48:58 +00:00

Compare commits

..

4 commits

Author SHA1 Message Date
d9447fcec7 add missing %s to sql statement 2019-09-18 14:29:35 +10:00
7e9698eae5 removed docker files on master branch 2019-09-18 13:11:33 +10:00
cbe491f1af reorganised directory structure 2019-09-18 13:04:44 +10:00
344e552729 don't repeat bot image 2019-09-18 12:56:33 +10:00
33 changed files with 4 additions and 26 deletions

View file

@ -1,6 +0,0 @@
__pycache__
config.json
planning.txt
README.md
.git
.vscode

View file

@ -1,4 +0,0 @@
FROM python:3.7-slim-buster
WORKDIR /fedibooks
COPY . fedibooks
RUN pip install -r requirements.txt

View file

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 136 KiB

View file

@ -55,6 +55,7 @@ body {
width: 100px;
height: 100px;
background: center/contain url("/img/bot_generic.png");
background-repeat: no-repeat;
}
.panel-icon.large {
width: 150px;

View file

@ -483,7 +483,7 @@ def bot_create():
secret = privated['auth']
client.push_subscription_set("{}/push/{}".format(cfg['base_uri'], handle), publicd, mention_events = True)
c.execute("INSERT INTO `bots` (handle, user_id, credentials_id, push_public_key, push_private_key, push_secret, instance_type) VALUES (%s, %s, %s, %s, %s, %s)", (handle, session['user_id'], credentials_id, public, private, secret, session['instance_type']))
c.execute("INSERT INTO `bots` (handle, user_id, credentials_id, push_public_key, push_private_key, push_secret, instance_type) VALUES (%s, %s, %s, %s, %s, %s, %s)", (handle, session['user_id'], credentials_id, public, private, secret, session['instance_type']))
mysql.connection.commit()
c.close()

View file

@ -1,15 +0,0 @@
version: '3'
services:
fedibooks:
build: .
links:
- db
ports:
5000:5000
db:
image: mariadb/server:10.4
environment:
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: fedibooks
MARIADB_USER: fedibooks
MARIADB_PASSWORD: fedibooks

2
run.sh
View file

@ -1 +1,3 @@
cd app
env FLASK_APP=webui.py flask run
cd ..