From 466912a293781cea6d7903a92141b1e3d4447539 Mon Sep 17 00:00:00 2001 From: Antoine Goutenoir Date: Wed, 30 Oct 2019 11:25:42 +0100 Subject: [PATCH] Prepare the estimations for the emission models, in the database. --- flaskr/models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flaskr/models.py b/flaskr/models.py index 4470ff2..6a6ebb4 100755 --- a/flaskr/models.py +++ b/flaskr/models.py @@ -42,6 +42,10 @@ class Estimation(db.Model): origin_addresses = db.Column(db.UnicodeText()) destination_addresses = db.Column(db.UnicodeText()) + # One slug per line (or blankchar?) + models_slugs = db.Column(db.UnicodeText()) + + # Deprecated, we detect this scenario from the amount of locations. compute_optimal_destination = db.Column(db.Boolean()) output_yaml = db.Column(db.UnicodeText()) @@ -65,6 +69,7 @@ class EstimationView(ModelView): 'status', 'first_name', 'last_name', + 'models_slugs', 'origin_addresses', 'destination_addresses', 'warnings', @@ -75,7 +80,6 @@ class EstimationView(ModelView): # name and email fields # column_searchable_list = ('name', 'email') - # Add filters for name and email columns column_filters = ('first_name', 'last_name') -- libgit2 0.21.2