From 7a9ccea4c76ad5dc642ea5240f56fe110301c583 Mon Sep 17 00:00:00 2001 From: mowoe <github@mowoe.com> Date: Sun, 28 Apr 2019 10:51:38 +0200 Subject: [PATCH] fixed reverends shit and nascht some --- dockercont/Dockerfile | 1 + main.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/dockercont/Dockerfile b/dockercont/Dockerfile index 933af0a..2703e8c 100644 --- a/dockercont/Dockerfile +++ b/dockercont/Dockerfile @@ -2,4 +2,5 @@ FROM tiangolo/uwsgi-nginx-flask:python3.6 RUN pip install peewee RUN pip install mysql RUN git clone https://gitlab.warpzone.ms/mowoe/chaos_familien_duell_frontend.git /zwisch +ADD creds.json /app/ RUN mv /zwisch/* /app diff --git a/main.py b/main.py index 82119e6..6fe2ef7 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,7 @@ from flask import Flask from view.questions import questions +from model import Question +import json if len(Question.select()) is 0: with open("questions.json", "r") as file: -- GitLab