Pastebin

Paste #24157: No description

< previous paste - next paste>

Pasted by Anonymous Coward

Download View as text

        data_file = os.path.join(data_dir, f"{current_time_fn}_performance-metrics_dev.csv")
        with open(data_file, 'w', newline='') as csvfile:
            fields = ["Timestamp", "Use case", "Action", "Duration"]
            csv_writer = csv.writer(csvfile,
                                    delimiter=';',
                                    quotechar='"',
                                    doublequote=True,
                                    skipinitialspace=False,
                                    lineterminator='\r\n',
                                    quoting=csv.QUOTE_MINIMAL)

            csv_writer.writerow(fields)

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.