mirror of
https://github.com/chenasraf/snpr.git
synced 2026-05-18 01:39:01 +00:00
don't update Mendeley timestamp on API error
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{<img src="http://travis-ci.org/gedankenstuecke/snpr.png" />}[http://travis-ci.org/gedankenstuecke/snpr]
|
||||
{<img src="https://secure.travis-ci.org/gedankenstuecke/snpr.png?branch=master" alt="Build Status" />}[https://travis-ci.org/gedankenstuecke/snpr]
|
||||
|
||||
= openSNP
|
||||
|
||||
|
||||
@@ -34,8 +34,7 @@ class MendeleySearch
|
||||
puts "Mendeley API seems to be down."
|
||||
puts "Error is:"
|
||||
puts result["error"]
|
||||
snp.mendeley_updated = Time.zone.now # TODO: Why?
|
||||
snp.save
|
||||
return
|
||||
elsif documents.present?
|
||||
puts "mendeley: Found #{documents.size} papers"
|
||||
documents.each do |document|
|
||||
|
||||
@@ -7,3 +7,5 @@ development:
|
||||
test:
|
||||
fitbit_consumer_key:
|
||||
fitbit_consumer_secret:
|
||||
mendeley:
|
||||
consumer_key:
|
||||
|
||||
Reference in New Issue
Block a user