1. infrae
  2. moai

Commits

"Jas...@ubib.eur.nl>"  committed cf915ff

bugfix, needed_sets config gets polluted by set argument

  • Participants
  • Parent commits 1ca2ae7
  • Branches default

Comments (0)

Files changed (1)

File moai/oai.py

View file
  • Ignore whitespace
             ut = time.mktime(until)-self.filter_data.delay
             until = datetime.fromtimestamp(ut)
             
-        needed_sets = self.config.sets_needed
+        needed_sets = self.config.sets_needed.copy()
         if not set is None:
             needed_sets.add(set)
-        allowed_sets = self.config.sets_allowed
-        disallowed_sets = self.config.sets_disallowed    
+        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,