def get(self): hexunfetcher.usdx() sinafetcher.dji() icbcfetcher.agTD() icbcfetcher.silverRmb() icbcfetcher.goldUsd() self.write("Fetch completed!")
def jobFetchAll(): try: hexunfetcher.usdx() except: traceback.print_exc() try: sinafetcher.dji() except: traceback.print_exc() try: icbcfetcher.agTD() except: traceback.print_exc() try: icbcfetcher.silverRmb() except: traceback.print_exc() try: icbcfetcher.goldUsd() except: traceback.print_exc() print "Fetch completed!"