Skip to content

Commit c56e08c

Browse files
committed
Fix inactive coworkers being displayed
1 parent aabb361 commit c56e08c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sync.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def fetch_image(image_url, user, password, path)
4949
Dir['_coworkers/*.*'].each { |f| File.delete(f) }
5050
JSON.parse(response.body)['coworkers'].each do |json|
5151
next unless json['public_enable'] == 1 &&
52+
json['active'] == 1 &&
5253
%w[nomade fixe passager].include?(json['formule']) &&
5354
json['_profile_picture']
5455

0 commit comments

Comments
 (0)