def testapi(): """Test to see if API is working""" conn = Connection(app_site()) print 'Attempting to get data from API...' conn.get('data_source') print 'Content retreived via API!'
def testapi(): """Test to see if API is working""" conn = Connection(app_site()) print 'Attempting to get data from API...' conn.get('data_source') print 'Content retreived via API!'
def resetdb(): """Remove all content from database and creates new tables""" conn = Connection(app_site()) conn.get('reset') print 'Database reset'
def resetdb(): """Remove all content from database and creates new tables""" conn = Connection(app_site()) conn.get('reset') print 'Database reset'