Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4d87d5

Browse files
committed
Merge pull request binux#270 from machinewu/master
fix bug for get_taskid when using post in markdown
2 parents 78ebc29 + 2323abd commit c4d87d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/apis/self.crawl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def callback(self, response):
154154
import json
155155
from pyspider.libs.utils import md5string
156156
def get_taskid(self, task):
157-
return md5string(task['url']+json.dumps(task['data']))
157+
return md5string(task['url']+json.dumps(task['fetch'].get('data', '')))
158158
```
159159
> Only url is md5 -ed as taskid by default, the code above add `data` of POST request as part of taskid.
160160

0 commit comments

Comments
 (0)