Browse Source

Fix queries in LexML

pull/3402/head
eribeiro 4 years ago
parent
commit
eccf3f7939
  1. 6
      sapl/lexml/OAIServer.py

6
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:

Loading…
Cancel
Save