projects
/
osm
/
osmclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove set_default_params method from client.py
[osm/osmclient.git]
/
osmclient
/
sol005
/
wim.py
diff --git
a/osmclient/sol005/wim.py
b/osmclient/sol005/wim.py
index
2466113
..
c9249d0
100644
(file)
--- a/
osmclient/sol005/wim.py
+++ b/
osmclient/sol005/wim.py
@@
-61,10
+61,7
@@
class Wim(object):
"""Returns id of name, or the id itself if given as argument"""
self._logger.debug("")
for wim in self.list():
"""Returns id of name, or the id itself if given as argument"""
self._logger.debug("")
for wim in self.list():
- if name == wim["uuid"]:
- return wim["uuid"]
- for wim in self.list():
- if name == wim["name"]:
+ if name == wim["uuid"] or name == wim["name"]:
return wim["uuid"]
return ""
return wim["uuid"]
return ""