updated
This commit is contained in:
@ -379,8 +379,6 @@ def publish_date(sender, instance, created, **kwargs):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('##################',e)
|
print('##################',e)
|
||||||
|
|
||||||
time.sleep(1)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
csv_f = glob.glob(r'{}/**/*.csv'.format(file_path), recursive=True)[0]
|
csv_f = glob.glob(r'{}/**/*.csv'.format(file_path), recursive=True)[0]
|
||||||
|
|
||||||
@ -397,6 +395,7 @@ def publish_date(sender, instance, created, **kwargs):
|
|||||||
updateLineTable(mdl, fields)
|
updateLineTable(mdl, fields)
|
||||||
if instance.layerof == 3:
|
if instance.layerof == 3:
|
||||||
updatePolygonTable(mdl, fields)
|
updatePolygonTable(mdl, fields)
|
||||||
|
time.sleep(2)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('##################',e)
|
print('##################',e)
|
||||||
|
|||||||
Reference in New Issue
Block a user