Von Lousy Wigeon, 1 Woche vorher, geschrieben in Plain Text.
Einbetten
  1. class VacuumTDAmeritrade:
  2.  
  3.         def __init__(self, ticker_list):
  4.                 self.m_ticker_list = ticker_list
  5.  
  6.  
  7.         def getIncomeStatement(self, ticker, quarterly):
  8.                 # ... code ...
  9.                 if quarterly:
  10.                         _adjust_tdameritrade_quarters_list(report_time) # ERROR!!!!
  11.                 return True
  12.  
  13.  
  14.         def _adjust_tdameritrade_quarters_list(years):
  15.                 # Convert advfn quarters from e.g. 'Q1 2018 03/30/18' to '2018/Q1'
  16.                 i = 0
  17.                 for y in years:
  18.                         y = y.split(' ')
  19.                         correct_year = y[1]
  20.                         quarter = y[0]
  21.                         correct_quarter = correct_year + "/" + quarter
  22.                         years[i] = correct_quarter
  23.                         i += 1
  24.  
  25.  
  26.  
  27. #    _adjust_tdameritrade_quarters_list(report_time)
  28. # NameError: name '_adjust_tdameritrade_quarters_list' is not defined
  29.  
captcha