mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 14:27:27 +00:00
Lowered internal timeout for post search
This commit is contained in:
parent
c87555bfee
commit
85989ad4d3
1 changed files with 1 additions and 1 deletions
|
@ -594,7 +594,7 @@ class MsG:
|
||||||
empty = 0
|
empty = 0
|
||||||
c = 0
|
c = 0
|
||||||
while len(posts) < limit:
|
while len(posts) < limit:
|
||||||
if c == limit * 5 + self.LIMIT:
|
if c == limit * 5 + (self.LIMIT / 5):
|
||||||
raise exc.Timeout
|
raise exc.Timeout
|
||||||
request = await u.fetch('https://{}.net/post/index.json'.format(booru), params={'tags': ','.join([order] + tags), 'limit': int(self.LIMIT * limit)}, json=True)
|
request = await u.fetch('https://{}.net/post/index.json'.format(booru), params={'tags': ','.join([order] + tags), 'limit': int(self.LIMIT * limit)}, json=True)
|
||||||
if len(request) == 0:
|
if len(request) == 0:
|
||||||
|
|
Loading…
Reference in a new issue