|
|
@ -52,7 +52,7 @@ class TodoDatabase:
|
|
|
|
|
|
|
|
|
|
|
|
def get_random_quote(self):
|
|
|
|
def get_random_quote(self):
|
|
|
|
# print(time.time())
|
|
|
|
# print(time.time())
|
|
|
|
if ("quotes_last_updated" in self.database) and (time.time()-self.database["quotes_last_updated"] > 86400):
|
|
|
|
if ("quotes_last_updated" in self.database) or ("quotes" in self.database) or (time.time()-self.database["quotes_last_updated"] > 86400):
|
|
|
|
self._update_quotes()
|
|
|
|
self._update_quotes()
|
|
|
|
quote = random.choice(self.database["quotes"])
|
|
|
|
quote = random.choice(self.database["quotes"])
|
|
|
|
|
|
|
|
|
|
|
|