Skip to content

Commit

Permalink
test row write failures
Browse files Browse the repository at this point in the history
  • Loading branch information
scrappycat committed Mar 19, 2017
1 parent 06ef00d commit 54e9d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -110,6 +110,6 @@

# Save in the database
for index, row in sorted_winners.iterrows():
row_dict = {'MY_SHORT_MAV': 0.876, 'Volume': 121400.0, 'Days_Over_Under': 1.0, 'Code': 'TGP', 'Low': 0.89, 'MY_MAV': 0.873, 'URL': 'https://au.finance.yahoo.com/echarts?s=TGP.AX', 'Open': 0.89, 'Days_x_Ratio': 0.0, 'Days': 4.0, 'Adj_Close': 0.89, 'High': 0.895, 'MY_RSI_RANK': 0.86, 'MY_RSI': 0.003, 'Company_name': '360 CAPITAL GROUP', 'GICS_industry_group': 'Real Estate', 'Close': 0.89, 'Rounded_Days': 0.0, 'extracted_on': '19-03-2017 16:03:29', 'extraction_date': '19-03-2017'}
row_dict = {"test": 1, "test1": "123123123"}
scraperwiki.sqlite.save(unique_keys=['Code', 'extraction_date'], data=row_dict)
break

0 comments on commit 54e9d8f

Please sign in to comment.