Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Formating to XML. Online debug, sry for the spam

  • Loading branch information...
commit e6cba41cb6ad8662950b2a9952c821ec8427854c 1 parent af9484a
@damienalexandre authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 populartagbydays.js
View
4 populartagbydays.js
@@ -6,8 +6,8 @@
//.query('limit', inputs['limit']).accept('application/json').get().response;
var recenttracks = y.query("SELECT * FROM lastfm.recenttracks WHERE user='"+inputs['user']+"' AND api_key='"+inputs['api_key']+"'").results;
-recenttracks = y.xmlToJson(recenttracks).lfm;
-response.object = recenttracks;
+recenttracks = y.xmlToJson(recenttracks);
+response.object = recenttracks.lfm;
//var recenttracks = {
// "results": {
Please sign in to comment.
Something went wrong with that request. Please try again.