This commit is contained in:
cwx
2023-04-05 22:46:33 +08:00
parent 89c7443bcb
commit ba57978ab2
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -33,8 +33,8 @@ class htmlUtils:
return htmlUtils.xpathData(c_xpath=c_xpath,url=url,num=num,not_eq=not_eq,update=update)
@classmethod
def setXpathData(cls,url,xpath,exec,num=None,result_type=None,type=None,start_add=None):
result = cls.parseExec(htmlUtils.xpathData(xpath,url=url,num=num),exec)
def setXpathData(cls,url,xpath,exec,num=None,result_type=None,type=None,start_add=None,update=False):
result = cls.parseExec(htmlUtils.xpathData(xpath,url=url,num=num,update=update),exec)
if result == None: return None
if result_type == "list" and type != None:
data = []