def _listQuery(self, set=None, from_=None, until=None, 
                   cursor=0, batch_size=10, identifier=None):
            
        now = datetime.utcnow()
        if until != None and now > until:
            # until should never be in the future
            until = now
            
        if self.config.delay:
            # subtract delay from until_ param, if present
            if until is None:
                until = datetime.utcnow()
            until = until.timetuple()
            ut = time.mktime(until)-self.filter_data.delay
            until = datetime.fromtimestamp(ut)
            
        needed_sets = self.config.sets_needed.copy()
        if not set is None:
            needed_sets.add(set)
        allowed_sets = self.config.sets_allowed.copy()
        disallowed_sets = self.config.sets_disallowed.copy()    
        
        return self.db.oai_query(offset=cursor,
                                 batch_size=batch_size,
                                 needed_sets=needed_sets,
                                 disallowed_sets=disallowed_sets,
                                 allowed_sets=allowed_sets,
                                 from_date=from_,
                                 until_date=until,
                                 identifier=identifier
                                 )
dataset/ETHPy150Open infrae/moai/moai/oai.py/OAIServer._listQuery/swapped operands of `>`