From 1536709c02f0aa4d4e4579486a5868f64354aa72 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 29 Jan 2016 20:01:17 +0200 Subject: [PATCH] Small fixes --- data/model/sqlalchemybridge.py | 2 +- util/config/validator.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/data/model/sqlalchemybridge.py b/data/model/sqlalchemybridge.py index 5e5ba670c..df622e381 100644 --- a/data/model/sqlalchemybridge.py +++ b/data/model/sqlalchemybridge.py @@ -30,7 +30,7 @@ def gen_sqlalchemy_metadata(peewee_model_list): all_indexes = set(meta.indexes) columns = [] - for field in meta.get_fields(): + for field in meta.sorted_fields: alchemy_type = None col_args = [] col_kwargs = {} diff --git a/util/config/validator.py b/util/config/validator.py index 1e8846646..412f3ebb2 100644 --- a/util/config/validator.py +++ b/util/config/validator.py @@ -37,8 +37,9 @@ def get_storage_providers(config): try: for name, parameters in storage_config.items(): - drivers[name] = (parameters[0], get_storage_driver(parameters)) + drivers[name] = (parameters[0], get_storage_driver(None, parameters)) except TypeError: + logger.exception('Missing required storage configuration provider') raise Exception('Missing required storage configuration parameter(s): %s' % name) return drivers