]> nos-oignons.net Git - gestion-adh.git/blobdiff - bin/list-emails
Finish implenting update-ag-subscribers
[gestion-adh.git] / bin / list-emails
index 569571efdde8ff8cdb371031e46c6059a1914cb3..6b13304b764262dd851848b068d1b879cff43c97 100755 (executable)
@@ -7,7 +7,8 @@ Bundler.setup
 
 require 'nos_oignons/subscriptions'
 
-subscriptions = read_subscriptions
-subscriptions.each_pair do |subscription_id, data|
-  puts data['email']
+NosOignons::Subscription.all.each do |subscription|
+  if subscription.up_to_date?
+    puts subscription.email
+  end
 end