We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit bff453cc authored by elleo's avatar elleo

Fix order of import script, skip first line (headings)

parent 62924b95
......@@ -25,11 +25,11 @@ $submissions_server = trim($response[3]);
$r = new HTTP_Request($submissions_server);
$r->setMethod(HTTP_REQUEST_METHOD_POST);
for($i = 0; $i < count($data); $i++) {
for($i = 1; $i < count($data); $i++) {
$row = explode("\t", $data[$i]);
$track = $row[0];
$artist = $row[1];
$track = $row[1];
$artist = $row[0];
$time = strtotime($row[2]);
if(!$time) {
$time = time();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment