Skip to content

Commit

Permalink
Whoops...
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Holden committed Sep 27, 2015
1 parent ba6b1c7 commit 5432275
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions scraper.php
Expand Up @@ -76,19 +76,19 @@ function _log($str) { echo $str."\n"; }
$data['Amp Limit'] = $data['Discharge (c)'] * ($data['Capacity(mAh)'] / 1000);

scraperwiki::save(['id'], [
['id'] => $data['id'],
['capacity'] => $data['Capacity(mAh)'],
['config'] => $data['Config (s)'],
['discharge'] => $data['Discharge (c)'],
['weight'] => $data['Weight (g)'],
['charge_rate'] => $data['Max Charge Rate (C)'],
['length'] => $data['Length-A(mm)'],
['height'] => $data['Height-B(mm)'],
['width'] => $data['Width-C(mm)'],
['price'] => $data['price'],
['energy'] => $data['Energy (Wh)'],
['energy_value'] => $data['Value (Wh/$)'],
['amp_limit'] => $data['Amp Limit']
'id' => $data['id'],
'capacity' => $data['Capacity(mAh)'],
'config' => $data['Config (s)'],
'discharge' => $data['Discharge (c)'],
'weight' => $data['Weight (g)'],
'charge_rate' => $data['Max Charge Rate (C)'],
'length' => $data['Length-A(mm)'],
'height' => $data['Height-B(mm)'],
'width' => $data['Width-C(mm)'],
'price' => $data['price'],
'energy' => $data['Energy (Wh)'],
'energy_value' => $data['Value (Wh/$)'],
'amp_limit' => $data['Amp Limit']
]);
scraperwiki::save_var('currentId', $productId);
$loopCount++;
Expand Down

0 comments on commit 5432275

Please sign in to comment.