lib/quandl/command/task/updatable.rb in quandl-0.3.6 vs lib/quandl/command/task/updatable.rb in quandl-0.3.7
- old
+ new
@@ -11,9 +11,12 @@
included do
before_execute :check_for_update_once_daily
end
def check_for_update_once_daily
+ # short circuit
+ return if options.production
+ # onwards
check_time = config.last_checked_for_update
# check time present?
if check_time.present? && check_time.is_a?(Time)
# has it been more than one day?
check_for_update if Time.now - 1.day > check_time || check_time > Time.now
\ No newline at end of file