mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
Source to_s
This commit is contained in:
parent
b5758db1c1
commit
001d294885
1 changed files with 3 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ class Imports::Create
|
|||
private
|
||||
|
||||
def importer(source)
|
||||
case source
|
||||
case source.to_s
|
||||
when 'google_semantic_history' then GoogleMaps::SemanticHistoryImporter
|
||||
when 'google_phone_takeout' then GoogleMaps::PhoneTakeoutImporter
|
||||
when 'google_records' then GoogleMaps::RecordsStorageImporter
|
||||
|
|
@ -51,6 +51,8 @@ class Imports::Create
|
|||
when 'gpx' then Gpx::TrackImporter
|
||||
when 'geojson' then Geojson::Importer
|
||||
when 'immich_api', 'photoprism_api' then Photos::Importer
|
||||
else
|
||||
raise ArgumentError, "Unsupported source: #{source}"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue