def runSentAlgo(self): print('Running Sent Algo') while timer('m',1): print('timer out') objA = analysis() objA.calculateSentScore()
def check_and_calculateDayHL(self): print('Running check_and_calculateDayHL ') fileOut = open('D:\Project Amigo\Project\TextFiles\date.txt','w') while timer('m',5): f = open('D:\Project Amigo\Project\TextFiles\date.txt','r') storedDate = f.read() f.close() dateNow = formatTime(str(datetime.now())) if storedDate[0:8] == dateNow[0:8]: print('Ignore') else: print('Calculating DayHL') self.calculateDayHL() finallyCalculatedDate = formatTime(str(datetime.now())) fileOut.write(finallyCalculatedDate) fileOut.close()