Skip to content

Commit f1137be

Browse files
committed
Fixes #69
1 parent 0e37788 commit f1137be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jdspider.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def getData(
129129
)
130130
if len(self.productsId) == 0:
131131
default_logger.warning(f"完了,self.productsId是空的,后面会导致默认评价了")
132+
sum_ = 0
132133
elif 0 < len(self.productsId) < 8: # limit the sum of products
133134
sum_ = len(self.productsId)
134135
else:

0 commit comments

Comments
 (0)