|
|
@@ -1,5 +1,5 @@ |
|
|
|
# Created 2019-09-10 by NGnius |
|
|
|
from flask import Flask, Blueprint, jsonify, request, send_file |
|
|
|
from flask import Flask, Blueprint, jsonify, request, send_file, render_template |
|
|
|
import sqlite3 as dblib |
|
|
|
from hashlib import sha512 |
|
|
|
from os import getcwd |
|
|
@@ -19,6 +19,10 @@ def get_or_create_connection(): |
|
|
|
database_connections[thread_id] = dblib.connect(database_path) |
|
|
|
return database_connections[thread_id] |
|
|
|
|
|
|
|
@app.route('/', methods=['GET']) |
|
|
|
def index(): |
|
|
|
return render_template('index.html') |
|
|
|
|
|
|
|
@app.route('/release', methods=['POST']) |
|
|
|
def create_or_modify_release(): |
|
|
|
try: |
|
|
|