예제 #1
0
def listItems():
    r = cocomo.query(
        "SELECT CONCAT('[',CONCAT(GROUP_CONCAT(REPLACE(track_json,\";\",'\"')),']')) FROM track_playlist WHERE id_playlist = '"
        + _POST["id"]
        + "'"
    )
    cocomo.printJson(r, "success")
예제 #2
0
def listByUser():
    r = cocomo.query("SELECT id_playlist , nombre FROM playlist WHERE id_user = '******'")
    cocomo.printJson(r, "success")
예제 #3
0
def listByUser():
    r = cocomo.query(
        "SELECT id_playlist , nombre FROM playlist WHERE id_user = '******'id'] + "'")
    cocomo.printJson(r, "success")
예제 #4
0
def listItems():
    r = cocomo.query(
        "SELECT CONCAT('[',CONCAT(GROUP_CONCAT(REPLACE(track_json,\";\",'\"')),']')) FROM track_playlist WHERE id_playlist = '"
        + _POST['id'] + "'")
    cocomo.printJson(r, "success")
예제 #5
0
파일: user.py 프로젝트: camarin24/Raptor
def getDownloadUser():
	_result = cocomo.query("CALL getDownloaUser ( " + _POST['id_user'] + " )")
	cocomo.printJson(_result, "success")