app/models/import.rb in reso-0.1.4.2 vs app/models/import.rb in reso-0.1.4.3

- old
+ new

@@ -30,17 +30,19 @@ allow_redirections: :all ){|f| return f.last_modified } end def new_source_data_exists? - self.source_data_modified.eql? self.source_url_last_modified ? false : true + (self.source_url_last_modified > self.source_data_modified) ? true : false end def run_import if self.status == 'active' - unless self.new_source_data_exists? + if self.new_source_data_exists? + self.update_attribute(:status, :running) source_data_modified = self.source_url_last_modified + l, count, found_listing_keys, stream = 0, 0, [], '' open_tag, close_tag = get_open_and_closing_tag_for self.repeating_element # Grab a file to work with filepath = download_feed_to_import self