Skip to content

Commit

Permalink
return the import models from repository in one entry, what leads to …
Browse files Browse the repository at this point in the history
…having only one command for repo-models
  • Loading branch information
signedav committed Dec 18, 2023
1 parent 155909f commit c06bdd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions QgisModelBaker/utils/gui_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ def import_sessions(self):
source = (
item.data(int(SourceModel.Roles.PATH))
if type == "ili"
else "repository " + model
else "repository"
)

if (
Expand All @@ -775,7 +775,8 @@ def import_sessions(self):
models = sessions[source]["models"]
else:
sessions[source] = {}
models.append(model)
if model not in models:
models.append(model)
sessions[source]["models"] = models
return sessions

Expand Down

0 comments on commit c06bdd1

Please sign in to comment.