def admin_populate_place_p(place_id): Database.add_location(request.form['lat'], request.form['lng'], place_id, session['userObj']['email'], str(session['currentStudy'])) return jsonifyResponse({'success': True})
def populate_place(place_id): lat, lng, study_id, owner = request.form['lat'], request.form['lng'], str(session['currentStudy']), session['userObj']['email'] Database.add_location(lat, lng, place_id, owner, str(session['currentStudy'])) return jsonifyResponse({ 'success': True })