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