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 update_last_update_day(self, day_string): rawdb.write_file('', 'last', day_string)
def write_data_crf(self, name, list): str = self.__stocklist2str(list) rawdb.write_file('crf', name, str)
def write_data_flow(self, name, list): str = self.__stocklist2str(list) rawdb.write_file('flow', name, str)
def write_data_day(self, name, list, year, month, day): path = self.__get_path_day(year, month, day) value = self.__stocklist2str(list) rawdb.write_file(path, name, value)
def write_data_jidu(self, name, list, year, jidu): path = self.__get_path_jidu(year, jidu) value = self.__stocklist2str(list) rawdb.write_file(path, name, value)
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