From eccf3f79397d92f48cd74209a5ed3f2dcbd50eb9 Mon Sep 17 00:00:00 2001 From: eribeiro Date: Wed, 26 May 2021 19:55:48 -0300 Subject: [PATCH] Fix queries in LexML --- sapl/lexml/OAIServer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sapl/lexml/OAIServer.py b/sapl/lexml/OAIServer.py index 9783f2fa6..6c0bf70f3 100644 --- a/sapl/lexml/OAIServer.py +++ b/sapl/lexml/OAIServer.py @@ -102,9 +102,11 @@ class OAIServer: return appconfig.esfera_federacao def recupera_norma(self, offset, batch_size, from_, until, identifier, esfera): - kwargs = {'data__lte': until} + kwargs = {'data__isnull': False, + 'timestamp__isnull': False, + 'timestamp__lte': until} if from_: - kwargs['data__gte'] = from_ + kwargs['timestamp__gte'] = from_ if identifier: kwargs['numero'] = identifier if esfera: