mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-25 08:38:59 +00:00
chmod +x app/scrape.py
This commit is contained in:
parent
87b9f64d75
commit
fc60b6d937
2 changed files with 6 additions and 1 deletions
0
app/scrape.py
Normal file → Executable file
0
app/scrape.py
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
||||||
from flask import Flask, render_template, session, request, redirect, url_for, send_file
|
from flask import Flask, render_template, session, request, redirect, url_for, send_file, jsonify
|
||||||
from flask_mysqldb import MySQL
|
from flask_mysqldb import MySQL
|
||||||
|
|
||||||
from mastodon import Mastodon
|
from mastodon import Mastodon
|
||||||
|
@ -370,6 +370,11 @@ def img_bot_generic():
|
||||||
def favicon():
|
def favicon():
|
||||||
return send_file("static/favicon.ico")
|
return send_file("static/favicon.ico")
|
||||||
|
|
||||||
|
@app.route("/.well-known/webfinger")
|
||||||
|
def webfinger():
|
||||||
|
return render_template("webfinger.json", base_uri = cfg['base_uri']), 200, {'Content-type':'application/json'}
|
||||||
|
|
||||||
|
|
||||||
def bot_check(bot):
|
def bot_check(bot):
|
||||||
# check to ensure bot is owned by user
|
# check to ensure bot is owned by user
|
||||||
c = mysql.connection.cursor()
|
c = mysql.connection.cursor()
|
||||||
|
|
Loading…
Reference in a new issue