Skip to content

Commit

Permalink
Fixed unique set IDs for each set uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
axemclion committed Aug 24, 2013
1 parent 4a97a30 commit 6d6e946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions submitData.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if (process.argv.length !== 3) {
console.log('Usage: %s %s', process.argv[1], process.argv[2]);
return;
}

var setId = require('node-uuid').v1();
require('csv')().from.path(process.argv[2], {
columns: true
}).to.array(function(data, count) {
Expand All @@ -28,7 +28,7 @@ require('csv')().from.path(process.argv[2], {
var parts = row.url.trim().split(/\//);
row.component = parts[1].split(/.html/)[0];
row.version = parts[0].substring(1);
row.set = require('node-uuid').v1();
row.set = setId
return row;
}
})

0 comments on commit 6d6e946

Please sign in to comment.