~magentoerpconnect-core-editors/magentoerpconnect/trunk_version

« back to all changes in this revision

Viewing changes to magentoerpconnect/sale.py

[MRG] fix lp:1132745: Import partners uses a OR function that doesn't work  

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
        """
85
85
        filters = []
86
86
        if from_date:
87
 
            filters = [
88
 
                    {'created_at': {'gt': from_date}}, # OR
89
 
                    {'updated_at': {'gt': from_date}}
90
 
                    ]
 
87
            filters = [{'updated_at': {'gt': from_date}}]
91
88
        if website_id:
92
89
            if filters:
93
 
                for f in filters:
94
 
                    f.update(website_id={'eq': website_id})
 
90
                filters[0].update(website_id={'eq': website_id})
95
91
            else:
96
92
                filters = [{'website_id': {'eq': website_id}}]
97
93