Пример #1
0
	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
Пример #2
0
	def update_last_update_day(self, day_string):
		rawdb.write_file('', 'last', day_string)
Пример #3
0
	def write_data_crf(self, name, list):
		str = self.__stocklist2str(list)
		rawdb.write_file('crf', name, str)
Пример #4
0
	def write_data_flow(self, name, list):
		str = self.__stocklist2str(list)
		rawdb.write_file('flow', name, str)
Пример #5
0
	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)
Пример #6
0
	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)
Пример #7
0
	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
Пример #8
0
 def update_last_update_day(self, day_string):
     rawdb.write_file('', 'last', day_string)
Пример #9
0
 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
Пример #10
0
 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)
Пример #11
0
 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)