From aec83afdb8ff0048718623b662ce65d12bdf6517 Mon Sep 17 00:00:00 2001
From: erichard <elliot.richard@lal.in2p3.fr>
Date: Thu, 20 Feb 2020 16:09:52 +0100
Subject: [PATCH] Reorganize architecture with new directories.

Code isn't working anymore !
---
 app/__init__.py                         |   2 +-
 app/{ => instance}/codingPool.db        | Bin
 app/{ => instance}/voiture.db           | Bin
 app/{ => labels_system}/getter.py       |   0
 app/{ => labels_system}/label_system.py |   2 +-
 5 files changed, 2 insertions(+), 2 deletions(-)
 rename app/{ => instance}/codingPool.db (100%)
 rename app/{ => instance}/voiture.db (100%)
 rename app/{ => labels_system}/getter.py (100%)
 rename app/{ => labels_system}/label_system.py (94%)

diff --git a/app/__init__.py b/app/__init__.py
index dee48f4..611ce46 100644
--- a/app/__init__.py
+++ b/app/__init__.py
@@ -1,6 +1,6 @@
 import os
 from flask import Flask, render_template
-from app.label_system import sort
+from app.labels_system.label_system import sort
 
 class CustomFlask(Flask):
     jinja_options = Flask.jinja_options.copy()
diff --git a/app/codingPool.db b/app/instance/codingPool.db
similarity index 100%
rename from app/codingPool.db
rename to app/instance/codingPool.db
diff --git a/app/voiture.db b/app/instance/voiture.db
similarity index 100%
rename from app/voiture.db
rename to app/instance/voiture.db
diff --git a/app/getter.py b/app/labels_system/getter.py
similarity index 100%
rename from app/getter.py
rename to app/labels_system/getter.py
diff --git a/app/label_system.py b/app/labels_system/label_system.py
similarity index 94%
rename from app/label_system.py
rename to app/labels_system/label_system.py
index 5826bb1..5af4533 100644
--- a/app/label_system.py
+++ b/app/labels_system/label_system.py
@@ -1,7 +1,7 @@
 from typing import Dict, List
 import json
 from flask import Blueprint
-from app.getter import get_selected_elements, get_discriminating_labels, get_high_discriminating_labels
+from app.labels_system.getter import get_selected_elements, get_discriminating_labels, get_high_discriminating_labels
 
 sort = Blueprint('sort', __name__)
 
-- 
GitLab