Mercurial > dive4elements > river
changeset 4963:1469066cc7d9 dami
Importer: Fix the order of the config check
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 04 Feb 2013 17:54:39 +0100 |
parents | 7323847fa7df |
children | 174fbaa3d344 |
files | flys-backend/contrib/shpimporter/shpimporter.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/shpimporter.py Fri Feb 01 11:42:34 2013 +0100 +++ b/flys-backend/contrib/shpimporter/shpimporter.py Mon Feb 04 17:54:39 2013 +0100 @@ -120,10 +120,9 @@ return True elif config.skip_floodplains == 1 and isinstance(importer, Floodplain): return True + elif config.skip_hws_lines == 1 and isinstance(importer, HWSLines): + return True elif config.skip_hws_points == 1 and isinstance(importer, HWSPoints): - if not isinstance(importer, HWSLines): - return True - elif config.skip_hws_lines == 1 and isinstance(importer, HWSLines): return True elif config.skip_gauge_locations == 1 and isinstance(importer, GaugeLocation): return True