def read_data_jidu(self, name, year, jidu): path = self.__get_path_jidu(year, jidu) for i in range(1, 3): value = rawdb.read_file(path, name) if value != '': return value #time.sleep(1) return ''
def read_data_day(self, name, year, month, day): path = self.__get_path_day(year, month, day) for i in range(1, 3): value = rawdb.read_file(path, name) if value != '': return value time.sleep(1) return ''
def get_last_update_day(self): day = rawdb.read_file('', 'last') if day == '': day = stockconfig.FIG_START_DAY rawdb.write_file('', 'last', day) return day
def read_data_flow(self, name): str = rawdb.read_file('flow', name) return str
def read_data_crf(self, name): str = rawdb.read_file('crf', name) return str
def get_last_update_day(self): day = rawdb.read_file('', 'last', self.mdb) if day == '': day = self.mstart_day rawdb.write_file('', 'last', day, self.mdb) return day