Skip to content

Commit

Permalink
Fix public_enable
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDelille committed Mar 9, 2023
1 parent 5067b40 commit bf61a93
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 bf61a93

Please sign in to comment.