This commit is contained in:
Mohamed Nouffer
2022-03-23 09:44:05 +05:30
parent acbe659e2e
commit 882768fdb5

View File

@ -22,6 +22,7 @@ from django.apps import apps
import csv
import codecs
import sys
import time
env = environ.Env(DEBUG=(bool, False))
environ.Env.read_env(env_file=".env")
@ -378,6 +379,8 @@ 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]