Added step parameter to API queries
This commit is contained in:
BIN
data/wallamanta.db
Normal file
BIN
data/wallamanta.db
Normal file
Binary file not shown.
@@ -34,8 +34,10 @@ class Worker:
|
|||||||
if condition != "all":
|
if condition != "all":
|
||||||
url = url + f"&condition={condition}" # new, as_good_as_new, good, fair, has_given_it_all
|
url = url + f"&condition={condition}" # new, as_good_as_new, good, fair, has_given_it_all
|
||||||
|
|
||||||
|
for step in range(15):
|
||||||
while True:
|
while True:
|
||||||
response = requests.get(url)
|
time.sleep(0.5)
|
||||||
|
response = requests.get(url+f"&step={step+1}")
|
||||||
try:
|
try:
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user