Skip to content

Commit

Permalink
Python 2 to Python 3 - dict.keys() again - modules/result.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSAMPERE committed Jun 17, 2019
1 parent 0aa5121 commit 9e21c55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/results.py
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9e21c55

Please sign in to comment.