]> nos-oignons.net Git - gestion-adh.git/blobdiff - bin/list-emails
Implement send-membership-reminders
[gestion-adh.git] / bin / list-emails
index 4c8a286f627792b0e12b0b64520abd8c2c7c9eb0..5315d8620549b4428395da6262306124189e30ae 100755 (executable)
@@ -5,13 +5,6 @@ require 'rubygems'
 require 'bundler'
 Bundler.setup
 
-require 'nos_oignons/subscriptions'
+require 'nos_oignons'
 
-subscriptions = read_subscriptions
-now = Time.now
-last_year = Time.new(now.year - 1, now.month, now.day).to_date
-subscriptions.each_pair do |subscription_id, data|
-  if data['membership_fee_paid_on'] && last_year < data['membership_fee_paid_on']
-    puts data['email']
-  end
-end
+NosOignons.list_emails!