Commit 4ef1da80 authored by ChamendiPabasara's avatar ChamendiPabasara

gazetteDownloadDetailsApi Configuarations

parent 5bdb4284
...@@ -379,7 +379,7 @@ def PdfBreaker(gz_url): ...@@ -379,7 +379,7 @@ def PdfBreaker(gz_url):
cv = Converter(pdf_file) cv = Converter(pdf_file)
cv.convert(docx_file, start=0, end=None) cv.convert(docx_file, start=0, end=None)
cv.close() cv.close()
pubDate_ = os.path.basename(pdf_file)[0:10] pubDate_ = os.path.basename(pdf_file)[0:10]
document = Document(output_docx_file_path.format(get_base_path())) document = Document(output_docx_file_path.format(get_base_path()))
...@@ -511,11 +511,12 @@ def readSecondaryStorage(): ...@@ -511,11 +511,12 @@ def readSecondaryStorage():
def gazetteDownloadDetailsApi(request, id=0): def gazetteDownloadDetailsApi(request, id=0):
data_ = [] data_ = []
# retrieving # retrieving
if request.method == 'GET': if request.method == 'GET':
gazettes = Gazette.objects.all() gazettes = Gazette.objects.all()
gazette_serializer = GazetteSerializer(gazettes, many=True) gazette_serializer = GazetteSerializer(gazettes, many=True)
# commodityPriceHandler() # commodityPriceHandler()
# import codecs # import codecs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment