diff options
| -rwxr-xr-x | gis-observation-map | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/gis-observation-map b/gis-observation-map index 35a2bd0..62e5642 100755 --- a/gis-observation-map +++ b/gis-observation-map @@ -88,7 +88,7 @@ if args.project_home is not None and args.project_name is not None:      projectHome.mkdir(mode=0o755, exist_ok=True)      projectPath = projectHome.joinpath(args.project_name) -    if not projectPath.suffix in ['.qgs', '.qgz']: +    if projectPath.suffix not in ['.qgs', '.qgz']:          projectPath = projectPath.with_suffix('.qgz')      if projectPath.exists():          raise Exception(f'{projectPath}: file exists') @@ -467,10 +467,10 @@ def getTaxonLists():              raise Exception(f'missing taxon #{i} (in {d0}) from directives {",".join(directives)}')      for d in directives:          for i in taxonLists2[d]: -            if not i in taxonLists2[d0]: +            if i not in taxonLists2[d0]:                  raise Exception(f'missing taxon #{i} (in {d}) from {d0}')      for i in taxonLists2['Natura2000HabitatsDirectiveArticle2PrioritySpecie']: -        if not i in taxonLists2['Natura2000HabitatsDirectiveArticle2']: +        if i not in taxonLists2['Natura2000HabitatsDirectiveArticle2']:              raise Exception(f'missing taxon #{i} (in Natura2000HabitatsDirectiveArticle2PrioritySpecie) from Natura2000HabitatsDirectiveArticle2')      getTaxonList(taxonLists, taxonLists2, 'BirdDirective', 'Birds Directive') @@ -485,7 +485,7 @@ def getTaxonLists():      #        raise Exception(f'missing taxon #{i} (in {d0}) from directives {",".join(directives)}')      for d in directives:          for i in taxonLists2[d]: -            if not i in taxonLists2[d0]: +            if i not in taxonLists2[d0]:                  raise Exception(f'missing taxon #{i} (in {d}) from {d0}')      i = getTaxonList(taxonLists, taxonLists2, 'TaxonIsRedlisted', 'Redlisted species') | 
