Codestyle update

This commit is contained in:
Patrick Jentsch 2020-10-08 23:10:07 +02:00
parent 99a8ea98e2
commit 1c8146e4a5
3 changed files with 3 additions and 5 deletions

View File

@ -5,5 +5,4 @@ echo "Waiting for nopaque..."
wait-for-it nopaque:5000 --strict --timeout=0
source venv/bin/activate
python nopaqued.py

View File

@ -1,3 +1,4 @@
from datetime import datetime
from flask import current_app, request
from flask_login import current_user
from socket import gaierror
@ -7,7 +8,6 @@ from ..events import connected_sessions
from ..models import Corpus, User
import cqi
import math
from datetime import datetime
'''

View File

@ -5,8 +5,7 @@ echo "Waiting for mq..."
wait-for-it "${NOPAQUE_MQ_HOST}:${NOPAQUE_MQ_PORT}" --strict --timeout=0
source venv/bin/activate
if [ "$#" -eq 0 ]; then
if [[ "$#" -eq 0 ]]; then
flask deploy
python nopaque.py
elif [[ "$1" == "flask" ]]; then
@ -16,6 +15,6 @@ else
echo ""
echo "nopaque startup script"
echo ""
echo "Management Commands:"
echo "Commands:"
echo " flask"
fi