Skip to content

Commit d6ffda5

Browse files
committed
adjust database uuid condition to use present?
1 parent fa3f794 commit d6ffda5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ GIT
1414
PATH
1515
remote: .
1616
specs:
17-
superset (0.2.1)
17+
superset (0.2.2)
1818
dotenv (~> 2.7)
1919
enumerate_it (~> 1.7.0)
2020
faraday (~> 1.0)

lib/superset/dashboard/import.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def zip_database_config_not_found_in_superset
6767
def superset_database_uuids_found
6868
@superset_database_uuids_found ||= begin
6969
zip_databases_details.map {|i| i[:uuid]}.map do |uuid|
70-
uuid if Superset::Database::List.new(uuid_equals: uuid).result.count == 1
70+
uuid if Superset::Database::List.new(uuid_equals: uuid).result.present?
7171
end.compact
7272
end
7373
end

0 commit comments

Comments
 (0)