Commit b8453fb0 authored by Florent Fourcot's avatar Florent Fourcot

Do not import Date in results header

Actually, the condition are not widely used. Do not load the datetime
module if we don't run it.
parent 1daa8669
......@@ -17,9 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
import weboob.tools.date as date_utils
from weboob.capabilities import UserError
from datetime import date
__all__ = ['ResultsCondition', 'ResultsConditionError']
......@@ -92,6 +90,8 @@ class ResultsCondition(IResultsCondition):
self.condition_str = condition_str
def is_valid(self, obj):
import weboob.tools.date as date_utils
from datetime import date
d = obj.to_dict()
# We evaluate all member of a list at each iteration.
for _or in self.condition:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment