Fix URL with parameters cannot be parsed
parent
2cca60ea9f
commit
a7a3819d7c
|
|
@ -295,7 +295,7 @@ def get_model_id_from_url(url:str) -> str:
|
|||
id = str(url)
|
||||
return id
|
||||
|
||||
s = url.split("/")
|
||||
s = re.sub("\\?.+$", "", url).split("/")
|
||||
if len(s) < 2:
|
||||
util.printD("url is not valid")
|
||||
return ""
|
||||
|
|
|
|||
Loading…
Reference in New Issue