From a62fe294570f49968c4385efa4aff1c4070fe33b Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Sun, 17 Jun 2018 16:18:24 -0300 Subject: [PATCH] =?UTF-8?q?Ajusta=20compara=C3=A7=C3=A3o=20de=20mtimes=20n?= =?UTF-8?q?a=20exporta=C3=A7=C3=A3o=20de=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/legacy/scripts/exporta_zope/exporta_zope.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/legacy/scripts/exporta_zope/exporta_zope.py b/sapl/legacy/scripts/exporta_zope/exporta_zope.py index 5639a7665..8f78b060f 100755 --- a/sapl/legacy/scripts/exporta_zope/exporta_zope.py +++ b/sapl/legacy/scripts/exporta_zope/exporta_zope.py @@ -217,7 +217,7 @@ def dump_folder(folder, path, salvar, mtimes, enum=enumerate_folder): # se o objeto for mais recente que o da última exportação mtime = obj._p_mtime fullname = os.path.join(path, id) - if mtime > mtimes.get(fullname): + if mtime > mtimes.get(fullname, 0): id_interno = dump(br(obj), path, salvar) assert id == id_interno mtimes[fullname] = mtime