Compare commits

...

4 commits

Author SHA1 Message Date
5c9b5fa56d comments that say what I have to do 2023-07-29 00:15:09 +02:00
26966a34d2 deleted unused imports 2023-07-29 00:10:45 +02:00
a63acf2026 deleted unused imports 2023-07-29 00:09:42 +02:00
9f756c2469 deleted unused vars 2023-07-29 00:04:46 +02:00
2 changed files with 5 additions and 9 deletions

View file

@ -1,6 +1,5 @@
from calendar import c import queue, time, uuid, json, logging, datetime, os
import queue, sqlite3, time, atexit, sys, uuid, json, urllib.parse, logging, datetime, os from flask import Flask, render_template, request, make_response, session, url_for, g
from flask import Flask, render_template, request, make_response, session, url_for, g, Blueprint
from flask_socketio import SocketIO, join_room, leave_room from flask_socketio import SocketIO, join_room, leave_room
from flask_session import Session from flask_session import Session
from markupsafe import escape from markupsafe import escape
@ -9,7 +8,6 @@ from .db import get_db
#flask_config #flask_config
DATABASE = 'Website/mate.db' DATABASE = 'Website/mate.db'
bp = Blueprint('auth', __name__, url_prefix='/auth')
def create_logs(app): def create_logs(app):
now = datetime.datetime.now().strftime('%d-%m-%Y-%H-%M-%S') now = datetime.datetime.now().strftime('%d-%m-%Y-%H-%M-%S')
@ -44,11 +42,9 @@ def create_app(test_config=None):
# if db is not None: # if db is not None:
# db.close() # db.close()
# app.logger.info("Website exited") # app.logger.info("Website exited")
#var #var
status = True
users = queue.Queue() users = queue.Queue()
finished = None
message = None
#website #website
@app.route('/favicon.ico') @app.route('/favicon.ico')

View file

@ -3,6 +3,7 @@ from urllib import response
from Website import create_app from Website import create_app
import json import json
import pdb import pdb
import Website
from Website.db import get_db from Website.db import get_db
from .test_conf import client, app from .test_conf import client, app
@ -44,8 +45,7 @@ def test_addtag_userid_nan(client):
def test_addtag(app, client): def test_addtag(app, client):
response_addtag = client.get('/addtag?id=1') response_addtag = client.get('/addtag?id=1')
with app.app_context(): #hier muss der userque was hinzugefügt werden!
None
response_tagid = client.get('/api/tag_id?id=12345678') response_tagid = client.get('/api/tag_id?id=12345678')
#/api #/api