Skip to content

Commit d7f5f00

Browse files
Abdechakour Mrabetfrodrigo
Abdechakour Mrabet
authored andcommitted
Fix sirtaqui route:pdf
1 parent 2075126 commit d7f5f00

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

datasources/sources/tourinsoft_sirtaqui.rb

+5-6
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,11 @@ def map_geometry(feat)
208208
end
209209

210210
def pdfs(feat)
211-
feat.select{ |k, v|
212-
k.start_with?('DOCPDF') && !v.nil?
213-
}.to_h{ |k, v|
214-
c = k[-2..].downcase
215-
[c == 'gb' ? 'en-US' : c, "#{@settings.photo_base_url}#{v}"]
216-
}
211+
{
212+
'en-US' => feat['DOCPDFGB'].nil? ? nil : "#{@settings.photo_base_url}#{feat['DOCPDFGB']}",
213+
'fr-FR' => feat['DOCPDFFR'].nil? ? nil : "#{@settings.photo_base_url}#{feat['DOCPDFFR']}",
214+
'es-ES' => feat['DOCPDFES'].nil? ? nil : "#{@settings.photo_base_url}#{feat['DOCPDFES']}",
215+
}.compact_blank
217216
end
218217

219218
def ouverture(feat)

0 commit comments

Comments
 (0)