diff --git a/rog/models.py b/rog/models.py index c6f94be..d2871d8 100644 --- a/rog/models.py +++ b/rog/models.py @@ -379,8 +379,6 @@ def publish_date(sender, instance, created, **kwargs): except Exception as e: print('##################',e) - time.sleep(1) - try: 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) if instance.layerof == 3: updatePolygonTable(mdl, fields) + time.sleep(2) except Exception as e: print('##################',e)