def __init__(self, prices): try: self.data = self.validate(prices) except DataEngineException as e: debug.error('%s'%e) self.data = {} except Exception as e: self.data = {}
def __init__(self, prices): try: self.data = self.validate(prices) except DataEngineException as e: debug.error('%s' % e) self.data = {} except Exception as e: self.data = {}
def flush(): # s = getSession() for table in [Application, Currencies, Good, Metrics, ABTest, Prices, Events]: try: # rows = s.query(table).count() rows = 0 debug.log('Deleting table %s with %d rows'%(table.__name__, rows)) table.__table__.drop(getEngine()) # s.commit() # s.flush() except Exception as e: debug.error('%s'%e)
def flush(): # s = getSession() for table in [ Application, Currencies, Good, Metrics, ABTest, Prices, Events ]: try: # rows = s.query(table).count() rows = 0 debug.log('Deleting table %s with %d rows' % (table.__name__, rows)) table.__table__.drop(getEngine()) # s.commit() # s.flush() except Exception as e: debug.error('%s' % e)
def validate(prices): debug.error('DataEngine function not implemented')
def getPrices(self, progress): debug.error('DataEngine function not implemented')