diff --git a/lib/import_xlsx.rb b/lib/import_xlsx.rb index af7a4900..0e00f075 100644 --- a/lib/import_xlsx.rb +++ b/lib/import_xlsx.rb @@ -355,7 +355,7 @@ def import # Latitude has a space at the end location = Location.find_or_create_by name: row["Dataset_location"], - lat: (row["Latitude"] || row["Latitude "]), + lat: row["Latitude"] || row["Latitude "], lon: row["Longitude"] self.log += "#{location.inspect}\n"