Skip to content

Commit

Permalink
Merge pull request #77 from atelierdesmedias/fix-public-enable
Browse files Browse the repository at this point in the history
Fix public_enable
  • Loading branch information
MartinDelille committed Mar 9, 2023
2 parents 5067b40 + bf61a93 commit 6132753
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 @@ -48,7 +48,7 @@ def fetch_image(image_url, user, password, path)
if response.is_a?(Net::HTTPSuccess)
Dir['_coworkers/*.*'].each { |f| File.delete(f) }
JSON.parse(response.body)['coworkers'].each do |json|
next unless json['public_enable'] &&
next unless json['public_enable'] == 1 &&
(%w[nomade fixe].include?(json['formule']) || json['id'] == 'AurelieKhalidi') &&
json['_profile_picture']

Expand Down

0 comments on commit 6132753

Please sign in to comment.