diff options
| author | 2019-09-02 14:07:26 +0100 | |
|---|---|---|
| committer | 2019-09-02 14:07:26 +0100 | |
| commit | 7959f1ab881512ca2515664a4f33d9533448d4e2 (patch) | |
| tree | 6539a484d50f253db41d3382c57bed56fbe8a907 /modules | |
| parent | Pass the content of a webpage to HTTPParsingException (diff) | |
| signature | ||
change Cache.py to be key:value
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/coins.py | 2 | ||||
| -rw-r--r-- | modules/github.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/coins.py b/modules/coins.py index e8435b99..3bdf6fff 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -185,7 +185,7 @@ class Module(ModuleManager.BaseModule): redeem_amount)) redeem_delay = self._redeem_delay(event["server"]) - self.bot.cache.temporary_cache(cache, redeem_delay) + self.bot.cache.temporary_cache(cache, True, redeem_delay) else: time_left = self.bot.cache.until_expiration(cache) event["stderr"].write("%s: Please wait %s before redeeming" % ( diff --git a/modules/github.py b/modules/github.py index c2f13294..71df302e 100644 --- a/modules/github.py +++ b/modules/github.py @@ -177,7 +177,7 @@ class Module(ModuleManager.BaseModule): if not cooldown == None: cache = self._cache_ref(ref) if not self.bot.cache.has_item(cache): - self.bot.cache.temporary_cache(cache, cooldown) + self.bot.cache.temporary_cache(cache, True, cooldown) return True else: return False |
