Browse Source

Corrige valor na variável timestamp (#2637)

Co-authored-by: edwardoliveira <edwardr@senado.gov.br>
pull/2579/head
Vinícius Cantuária 6 years ago
committed by Edward Ribeiro
parent
commit
ba95de8198
  1. 2
      sapl/lexml/OAIServer.py

2
sapl/lexml/OAIServer.py

@ -89,7 +89,7 @@ class OAIServer:
def create_header(self, record): def create_header(self, record):
oai_id = self.get_oai_id(record['record']['id']) oai_id = self.get_oai_id(record['record']['id'])
timestamp = record['record']['when_modified'] timestamp = record['record']['when_modified'] if record['record']['when_modified'] else datetime.now()
timestamp = timestamp.replace(tzinfo=None) timestamp = timestamp.replace(tzinfo=None)
sets = [] sets = []
deleted = record['record']['deleted'] deleted = record['record']['deleted']

Loading…
Cancel
Save