added potential fix for ignoring EXEMPT delivery tickets

The Idea is that we aren't adding exempt addresses in CL at all. Except they still want it on the street in the handheld, so there will be these random “Exempt” data fields that would basically be corrupting the data when we try to upload tickets. My thought is to just ignore the exempt ticket altogether so that it doesn’t get into the process of saving, updating status, or even going in as an AD.
No I wasn't


Sent via mobile awesomeness.


-------- Original message --------
From: Joe Bennett
Date:06/25/2014 3:59 PM (GMT-05:00)
To: joebeone/cascade
Cc: "Roberts, Andrew"
Subject: Re: [cascade] added potential fix for ignoring EXEMPT delivery tickets (#10)


In cascade/libs/uploads.py:

> -            logger.info("IN ADD")
> -
> -            try:
> -                if unit_number.strip():
> -                    logger.info("*** IN ADD UNIT ***")
> -                    #check by address and unit
> -                    location, address_created = CollectionAddress.objects.get_or_create(house_number=house_number,
> -                                                                                        street_name=street,
> -                                                                                        site=file_record.site,
> -                                                                                        unit=unit_number)
> -                else:
> -                    logger.info("*** IN ADD ADDRESS ***")
> -                    #check by address
> +        if 'EXEMPT' in system_id:
> +            print ("Address %s %s %s is EXEMPT from delivery. Ignoring line." % (street, house_number, unit_number))
> +            pass


Andy,

You can remove "pass" here. BTW ... where you able to run a test on this from your local machine?

—
Reply to this email directly or view it on GitHub<https://github.com/joebeone/cascade/pull/10/files#r14208562>.


CONFIDENTIALITY NOTICE

The information contained in this communication is confidential, 
may constitute inside information, may be attorney-client 
privileged and is intended only for the use of the named 
recipient. If the reader of this e-mail message is not the 
intended recipient, or the employee or agent responsible for 
delivery of the message to the intended recipient, you are hereby 
notified that any dissemination, distribution or copying of this 
communication is prohibited. If you have received this e-mail in 
error, please notify the sender immediately by telephone at 616-
975-4800.