We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27952ca commit ab418d3Copy full SHA for ab418d3
1 file changed
autosubmit_api/routers/v4/experiments.py
@@ -364,26 +364,20 @@ def _generate_csv(expid: str):
364
365
csv_file = StringIO()
366
writer = csv.writer(csv_file)
367
+ writer.writerow(
368
+ [
369
+ "job_name",
370
+ "run_id",
371
+ "section",
372
+ "status",
373
+ "submit",
374
+ "start",
375
+ "finish",
376
+ "out",
377
+ "err",
378
+ ]
379
+ )
380
- # Yield the header first
- header = [
- "job_name",
- "run_id",
- "section",
- "status",
- "submit",
- "start",
- "finish",
- "out",
- "err",
- ]
- writer.writerow(header)
381
- csv_file.seek(0)
382
- yield csv_file.read()
383
384
- csv_file.truncate(0)
385
-
386
- # Yield each job row
387
for job in job_generator:
388
writer.writerow(
389
[
0 commit comments