update deals.py to deal with duplicate addition