def process_export_client_login_trace(db, request, session_user): if request.csv: converter = ConvertJsonToCSV(db, request, session_user, "ClientLoginTraceReport") if converter.FILE_DOWNLOAD_PATH is None: return technoreports.ExportToCSVEmpty() else: return generalprotocol.ExportToCSVSuccess( link=converter.FILE_DOWNLOAD_PATH)
def export_assigned_statutory_bulk_report_data(db, request, session_user): if request.csv: converter = ConvertJsonToCSV(db, request, session_user, "ExportASBulkReport") if converter.FILE_DOWNLOAD_PATH is None: return technoreports.ExportToCSVEmpty() else: return generalprotocol.ExportToCSVSuccess( link=converter.FILE_DOWNLOAD_PATH)
def process_export_audit_trails(db, request, session_user): if request.csv: converter = ConvertJsonToCSV(db, request, session_user, "AuditTraiReport") if converter.FILE_DOWNLOAD_PATH is None: return technoreports.ExportToCSVEmpty() else: return generalprotocol.ExportToCSVSuccess( link=converter.FILE_DOWNLOAD_PATH)
def export_clientunit_bulk_report(db, request, session_user): if request.csv: converter = ConvertJsonToCSV(db, request, session_user, "ExportCUBulkReport") if converter.FILE_DOWNLOAD_PATH is None: return technoreports.ExportToCSVEmpty() else: return generalprotocol.ExportToCSVSuccess( link=converter.FILE_DOWNLOAD_PATH)