Skip to content

Commit

Permalink
Add passengers to the list of coworkers
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDelille committed Jun 20, 2023
1 parent fad73e1 commit 2c7733e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def fetch_image(image_url, user, password, path)
Dir['_coworkers/*.*'].each { |f| File.delete(f) }
JSON.parse(response.body)['coworkers'].each do |json|
next unless json['public_enable'] == 1 &&
(%w[nomade fixe].include?(json['formule']) || json['id'] == 'AurelieKhalidi') &&
%w[nomade fixe passager].include?(json['formule']) &&
json['_profile_picture']

coworker = { 'name' => "#{json['first_name']} #{json['last_name']}", 'layout' => 'coworker' }
Expand Down

0 comments on commit 2c7733e

Please sign in to comment.