Ignore:
Timestamp:
21 Jun 2016, 05:13:36 (9 years ago)
Author:
Henrik Bettermann
Message:

Remove really all expired mandates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/mandates/container.py

    r13959 r13961  
    5252        """
    5353        num_deleted = 0
    54         for mandate in self.keys():
     54        keys = list(self.keys())
     55        for mandate in keys:
    5556            if self[mandate].expires < datetime.utcnow():
    5657                del self[mandate]
Note: See TracChangeset for help on using the changeset viewer.