mirror of https://github.com/caronc/apprise
Reddit RateLimit variables should be unique per instance
parent
a94700b0eb
commit
d7a5a60508
|
@ -134,12 +134,6 @@ class NotifyReddit(NotifyBase):
|
||||||
# still allow to make.
|
# still allow to make.
|
||||||
request_rate_per_sec = 0
|
request_rate_per_sec = 0
|
||||||
|
|
||||||
# For Tracking Purposes
|
|
||||||
ratelimit_reset = datetime.now(timezone.utc).replace(tzinfo=None)
|
|
||||||
|
|
||||||
# Default to 1.0
|
|
||||||
ratelimit_remaining = 1.0
|
|
||||||
|
|
||||||
# Taken right from google.auth.helpers:
|
# Taken right from google.auth.helpers:
|
||||||
clock_skew = timedelta(seconds=10)
|
clock_skew = timedelta(seconds=10)
|
||||||
|
|
||||||
|
@ -326,6 +320,13 @@ class NotifyReddit(NotifyBase):
|
||||||
if not self.subreddits:
|
if not self.subreddits:
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
'No subreddits were identified to be notified')
|
'No subreddits were identified to be notified')
|
||||||
|
|
||||||
|
# For Rate Limit Tracking Purposes
|
||||||
|
self.ratelimit_reset = datetime.now(timezone.utc).replace(tzinfo=None)
|
||||||
|
|
||||||
|
# Default to 1.0
|
||||||
|
self.ratelimit_remaining = 1.0
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
def url(self, privacy=False, *args, **kwargs):
|
def url(self, privacy=False, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue