Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collection.py中,若有多个任务,formtitle可能不生效 #73

Open
qwinwin opened this issue Sep 9, 2022 · 0 comments
Open

collection.py中,若有多个任务,formtitle可能不生效 #73

qwinwin opened this issue Sep 9, 2022 · 0 comments

Comments

@qwinwin
Copy link

qwinwin commented Sep 9, 2022

假设有两个收集任务,指定的formtitle为 res['datas']['rows'][0], 经过for循环后self被覆盖为 res['datas']['rows'][1] 中内容
这个for应该是想对每个任务做检测但实际上只执行了最后一个item

31行

       for item in res['datas']['rows']:
            if item['isHandled'] == 0:
                self.collectWid = item['wid']
                self.formWid = item['formWid']
                self.instanceWid = item['instanceWid']
            if "formTitle" in self.userInfo:
                if (item["subject"]).find(self.userInfo["formTitle"]) > -1:
                    print("geteget")
                    self.collectWid = item['wid']
                    self.formWid = item['formWid']
                    self.instanceWid = item['instanceWid']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant