mirror of https://gitlab.com/bashrc2/epicyon
Reduce lower bound for maximum posts per minute
parent
c687d0ce52
commit
3045e8c860
8
inbox.py
8
inbox.py
|
@ -2326,8 +2326,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
if quotasPerMin['domains'].get(postDomain):
|
if quotasPerMin['domains'].get(postDomain):
|
||||||
domainMaxPostsPerMin = \
|
domainMaxPostsPerMin = \
|
||||||
int(domainMaxPostsPerDay / (24 * 60))
|
int(domainMaxPostsPerDay / (24 * 60))
|
||||||
if domainMaxPostsPerMin < 10:
|
if domainMaxPostsPerMin < 5:
|
||||||
domainMaxPostsPerMin = 10
|
domainMaxPostsPerMin = 5
|
||||||
if quotasPerMin['domains'][postDomain] > \
|
if quotasPerMin['domains'][postDomain] > \
|
||||||
domainMaxPostsPerMin:
|
domainMaxPostsPerMin:
|
||||||
print('Queue: Quota per min - Maximum posts for ' +
|
print('Queue: Quota per min - Maximum posts for ' +
|
||||||
|
@ -2367,8 +2367,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
if quotasPerMin['accounts'].get(postHandle):
|
if quotasPerMin['accounts'].get(postHandle):
|
||||||
accountMaxPostsPerMin = \
|
accountMaxPostsPerMin = \
|
||||||
int(accountMaxPostsPerDay / (24 * 60))
|
int(accountMaxPostsPerDay / (24 * 60))
|
||||||
if accountMaxPostsPerMin < 10:
|
if accountMaxPostsPerMin < 5:
|
||||||
accountMaxPostsPerMin = 10
|
accountMaxPostsPerMin = 5
|
||||||
if quotasPerMin['accounts'][postHandle] > \
|
if quotasPerMin['accounts'][postHandle] > \
|
||||||
accountMaxPostsPerMin:
|
accountMaxPostsPerMin:
|
||||||
print('Queue: Quota account posts per min -' +
|
print('Queue: Quota account posts per min -' +
|
||||||
|
|
Loading…
Reference in New Issue