lib/chatterbot/config.rb in chatterbot-0.2.6 vs lib/chatterbot/config.rb in chatterbot-0.2.7

- old
+ new

@@ -81,10 +81,11 @@ def update_config return if ! update_config? # don't update flat file if we can store to the DB instead if has_db? + debug "storing config to database -- you don't need local file anymore" store_database_config else store_local_config end end @@ -237,10 +238,10 @@ def store_database_config return false if db.nil? configs = db[:config] data = { - :since_id => config[:since_id], + :since_id => config.has_key?(:tmp_since_id) ? config[:tmp_since_id] : config[:since_id], :token => config[:token], :secret => config[:secret], :consumer_secret => config[:consumer_secret], :consumer_key => config[:consumer_key], :updated_at => Time.now #:NOW.sql_function