コード例 #1
0
 def job(self):
     print "Django_cron is currently doing some batch work."
     try:
         update_stocks()
     except:
         print "UpdateStocks died for an unknown reason."
     print "Done :D"
コード例 #2
0
    def handle(self, *args, **options):
        if options['quick']:
            api.update_industries()
            api.update_tickers()

        api.update_stocks()