<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -120,7 +120,7 @@ class Racer &lt; ActiveRecord::Base
     
     racers = Racer.connection.select_all(%Q{
       SELECT racers.id, license, first_name, last_name, teams.name as team_name, racers.notes,
-             DATE_FORMAT(member_from, '%m/%d/%Y') as member_from, DATE_FORMAT(member_to, '%m/%d/%Y') as member_to,
+             DATE_FORMAT(member_from, '%m/%d/%Y') as member_from, DATE_FORMAT(member_to, '%m/%d/%Y') as member_to, DATE_FORMAT(member_usac_to, '%m/%d/%Y') as member_usac_to,
              print_card, print_mailing_label, ccx_only, DATE_FORMAT(date_of_birth, '%m/01/%Y') as date_of_birth, occupation, 
              street, racers.city, racers.state, zip, wants_mail, email, wants_email, home_phone, work_phone, cell_fax, gender, 
              ccx_category, road_category, track_category, mtb_category, dh_category, 
@@ -172,6 +172,15 @@ class Racer &lt; ActiveRecord::Base
     racers
   end
   
+  #interprets dates returned in sql above for member export
+  def Racer.lic_check(lic, lic_date)
+    if lic.to_i &gt; 0
+      (lic_date &amp;&amp; (Date.parse(lic_date) &gt; Date.today)) ? &quot;current&quot; : &quot;CHECK LIC!&quot;
+    else
+      &quot;NOT ON FILE&quot;
+    end
+  end
+  
   def racers_with_same_name
     racers = Racer.find_all_by_name(self.name) | Alias.find_all_racers_by_name(self.name)
     racers.reject! { |racer| racer == self }</diff>
      <filename>app/models/racer.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9dd551aad09dd2a3a91a0e54d600d760fed14957</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Rickerts</name>
    <email>ryan@rocketdesigns.net</email>
  </author>
  <url>http://github.com/scottwillson/racing_on_rails/commit/13960be93d857539929bbb71eb297cb6bb281b7d</url>
  <id>13960be93d857539929bbb71eb297cb6bb281b7d</id>
  <committed-date>2009-05-30T15:05:49-07:00</committed-date>
  <authored-date>2009-05-30T15:05:49-07:00</authored-date>
  <message>Including USAC license dates in sql for member export, and some formatting from dates to key words for Registration folks</message>
  <tree>ead73dce6841fe0196f7b254807c4422d44846e8</tree>
  <committer>
    <name>Ryan Rickerts</name>
    <email>ryan@rocketdesigns.net</email>
  </committer>
</commit>
