mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Modification to the cron methods to allow arguments to be passed to each call
This commit is contained in:
@@ -18,7 +18,7 @@ class UpdateAPIs():
|
||||
|
||||
last_update_delay = 604800
|
||||
|
||||
def job(self):
|
||||
def job(self, args):
|
||||
delta = datetime.timedelta(seconds=self.last_update_delay)
|
||||
|
||||
self._logger.debug("Updating accounts older than %s" % (datetime.datetime.now() - delta))
|
||||
@@ -63,7 +63,7 @@ class ProcessValidations():
|
||||
self.__logger = logging.getLogger(__name__)
|
||||
return self.__logger
|
||||
|
||||
def job(self):
|
||||
def job(self, args):
|
||||
inbox = Inbox(settings.REDDIT_USER, settings.REDDIT_PASSWD)
|
||||
|
||||
for msg in inbox:
|
||||
|
||||
Reference in New Issue
Block a user