mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-31 10:09:28 +01:00
Remove python json depedency for people using python <2.6
This commit is contained in:
@@ -29,7 +29,6 @@ from headphones import logger, searcher, db, importer, mb, lastfm, librarysync
|
||||
from headphones.helpers import checked, radio,today
|
||||
|
||||
import lib.simplejson as simplejson
|
||||
import json
|
||||
|
||||
|
||||
|
||||
@@ -508,7 +507,7 @@ class WebInterface(object):
|
||||
'iTotalRecords':totalcount,
|
||||
'aaData':rows,
|
||||
}
|
||||
s = json.dumps(dict)
|
||||
s = simplejson.dumps(dict)
|
||||
cherrypy.response.headers['Content-type'] = 'application/json'
|
||||
return s
|
||||
getArtists_json.exposed=True
|
||||
|
||||
Reference in New Issue
Block a user