Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# For license information, please see license.txt

import gzip
import json
from datetime import datetime

import frappe
Expand All @@ -13,6 +14,7 @@
get_link_to_form,
getdate,
)
from frappe.utils.response import json_handler

from india_compliance.gst_india.doctype.gst_return_log.generate_gstr_1 import (
FileGSTR1,
Expand Down Expand Up @@ -316,7 +318,9 @@ def get_file_doc(doctype, docname, attached_to_field):


def get_compressed_data(json_data):
return gzip.compress(frappe.safe_encode(frappe.as_json(json_data)))
return gzip.compress(
frappe.safe_encode(json.dumps(json_data, default=json_handler, separators=(",", ":")))
)


def get_decompressed_data(content):
Expand Down
Loading