From 1c8146e4a5f17b6c48536ee97b78ce4b9b72b94c Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Thu, 8 Oct 2020 23:10:07 +0200 Subject: [PATCH] Codestyle update --- daemon/boot.sh | 1 - web/app/corpora/events.py | 2 +- web/boot.sh | 5 ++--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/daemon/boot.sh b/daemon/boot.sh index ce652c64..d3e27ee8 100755 --- a/daemon/boot.sh +++ b/daemon/boot.sh @@ -5,5 +5,4 @@ echo "Waiting for nopaque..." wait-for-it nopaque:5000 --strict --timeout=0 source venv/bin/activate - python nopaqued.py diff --git a/web/app/corpora/events.py b/web/app/corpora/events.py index ced63a3a..82a66d17 100644 --- a/web/app/corpora/events.py +++ b/web/app/corpora/events.py @@ -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 ''' diff --git a/web/boot.sh b/web/boot.sh index 871e149c..4a79f81a 100755 --- a/web/boot.sh +++ b/web/boot.sh @@ -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