use zip
This commit is contained in:
parent
631393d4c2
commit
87943c4b03
@ -67,9 +67,9 @@ class ProxyElem():
|
|||||||
logger.info(e)
|
logger.info(e)
|
||||||
if isinstance(jdata, list):
|
if isinstance(jdata, list):
|
||||||
ret_data = []
|
ret_data = []
|
||||||
for i in range(len(jdata)):
|
for src, dst in zip(urls, jdata):
|
||||||
if isinstance(urls[i], str):
|
if isinstance(src, str):
|
||||||
ret_data.append(jdata[i])
|
ret_data.append(dst)
|
||||||
else:
|
else:
|
||||||
ret_data.append(None)
|
ret_data.append(None)
|
||||||
return ret_data
|
return ret_data
|
||||||
|
Loading…
Reference in New Issue
Block a user