def getInitialRealTime(self): #date for the query now = datetime.datetime.now() thenTemp = now - datetime.timedelta(hours = 10*24) then = thenTemp.strftime("%Y-%m-%d %H:%M") data = SQLclient.getInitialRealTime(self.cursor, then) self.initdata = data