diff --git a/modules/results.py b/modules/results.py index ace33302..acec0543 100644 --- a/modules/results.py +++ b/modules/results.py @@ -343,7 +343,7 @@ def show_results(self, api_results, tbl_result=None, pg_connections=dict(), prog # If there is only one way for the data to be added, insert a # button. elif len(dico_add_options) == 1: - text = dico_add_options.keys()[0] + text = list(dico_add_options.keys())[0] params = dico_add_options.get(text) if text.startswith("WFS"): icon = ico_wfs @@ -416,6 +416,8 @@ def _filepath_builder(self, metadata_path, mode=1): if mode == 1: filepath = os.path.normpath(metadata_path) dir_file = os.path.dirname(filepath) + logger.debug("*======* METADATA_PATH : {}".format(metadata_path)) + logger.debug("*======* FILEPATH : {}".format(filepath)) if dir_file not in self.cached_unreach_paths: try: with open(filepath) as f: