internal files

This commit is contained in:
www
2020-12-28 00:50:17 +00:00
parent 77205f6b3d
commit 161b5710cd
3 changed files with 109 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ from solrfet2020 import SolrFet2020
from slugify import slugify
import wiki
import internfiles
#logging.basicConfig(level=logging.INFO)
URL_HOSTNAME='bot.2020.fet.at'
@@ -65,6 +66,7 @@ def auth_user(user_id, token):
return "development"
app.register_blueprint(wiki.bp)
app.register_blueprint(internfiles.bp)
def download_file(url):
local_filename = url.split('/')[-1]