Example #1
0
	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 ''
Example #2
0
	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 ''
Example #3
0
 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 ''
Example #4
0
 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 ''
Example #5
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
Example #6
0
	def read_data_flow(self, name):
		str = rawdb.read_file('flow', name)
		return str
Example #7
0
	def read_data_crf(self, name):
		str = rawdb.read_file('crf', name)
		return str
Example #8
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
Example #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