misc: ignore .max_id in zip export/import (#53225)
This commit is contained in:
parent
5b45fe4681
commit
591cb8aa2e
|
@ -1042,7 +1042,7 @@ class SettingsDirectory(QommonSettingsDirectory):
|
|||
if not os.path.exists(path):
|
||||
continue
|
||||
for f in os.listdir(path):
|
||||
if f == '.indexes':
|
||||
if f in ('.indexes', '.max_id'):
|
||||
continue
|
||||
z.write(os.path.join(path, f), os.path.join(d, f))
|
||||
if 'datasources' in self.dirs:
|
||||
|
|
|
@ -203,7 +203,7 @@ class WcsPublisher(QommonPublisher):
|
|||
return rv
|
||||
|
||||
for f in z.namelist():
|
||||
if '.indexes' in f:
|
||||
if f in ('.indexes', '.max_id'):
|
||||
continue
|
||||
if os.path.dirname(f) in (
|
||||
'formdefs_xml',
|
||||
|
|
Loading…
Reference in New Issue