Exemplo n.º 1
0
def generate_stock_feedback_report(user, host_name, stocks):
    csv_export_service = StockReportExporter(host_name)
    CSVExportService.generate(csv_export_service.assemble_csv_data(stocks),
                              csv_export_service.export_category,
                              csv_export_service.get_export_csv_file_name())

    CSVExportService.notify(user, *csv_export_service.notification_details())
Exemplo n.º 2
0
def generate_stock_feedback_report(user, host_name, stocks):
    csv_export_service = StockReportExporter(host_name)
    CSVExportService.generate(csv_export_service.assemble_csv_data(stocks),
                              csv_export_service.export_category,
                              csv_export_service.get_export_csv_file_name())

    CSVExportService.notify(user, *csv_export_service.notification_details())