def __init__(self): """ Initializes database connection and sessionmaker. Creates deals table. """ engine = db_connect() create_events_table(engine) self.Session = sessionmaker(bind=engine)
def __init__(self, url): #url is the lele service API url self.url = url engine = db_connect() create_events_table(engine) self.Session = sessionmaker(bind=engine)