1
0
Fork 0
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:
Myned 2017-10-31 16:20:19 -04:00
parent c87555bfee
commit 85989ad4d3

View file

@ -594,7 +594,7 @@ class MsG:
empty = 0
c = 0
while len(posts) < limit:
if c == limit * 5 + self.LIMIT:
if c == limit * 5 + (self.LIMIT / 5):
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)
if len(request) == 0: