Changeset 54:4a88af83eca6 in stamper


Ignore:
Timestamp:
Nov 8, 2014, 7:20:31 PM (10 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Proper date filtering for the push_stamps() method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stamper/stamper.py

    r53 r54  
    436436        print('[warning] remember to review the resulting stamps file')
    437437
    438     def push_stamps(self, customer=None, filter_from=None, filter_to=None):
     438    def push_stamps(self, customer=None, stamp_filter=None):
     439        filter_from, filter_to = self.validate_filter(stamp_filter)
     440
    439441        stamps = []
    440442        for stamp in self.stamps:
     
    454456                    continue
    455457                stamps.append(stamp)
     458
    456459        stamps = json.dumps(stamps, indent=4)
    457460        http_client = HTTPClient(REMOTE_BASE_URL)
Note: See TracChangeset for help on using the changeset viewer.