From 177919d39b1601386c56e9db5c4a04600e1a7b21 Mon Sep 17 00:00:00 2001 From: Mohamed Nouffer Date: Wed, 23 Mar 2022 09:50:03 +0530 Subject: [PATCH] updated --- rog/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)