From 25e93397489bb9ee4b49faca5143c3c887a2b0ce Mon Sep 17 00:00:00 2001 From: Norbert Walkowiak Date: Tue, 18 Apr 2023 07:45:47 +0200 Subject: [PATCH] fix --- Jenkinsfile | 2 +- s487175-create-dataset-script.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c69b616..f3c23f2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,7 @@ pipeline { name: 'KAGGLE_KEY' ), string( - defaultValue: null, + defaultValue: '', description: 'Set cutoff', name: 'CUTOFF', trim: false diff --git a/s487175-create-dataset-script.py b/s487175-create-dataset-script.py index 2153b46..93e297c 100644 --- a/s487175-create-dataset-script.py +++ b/s487175-create-dataset-script.py @@ -11,9 +11,10 @@ if cutoff is None: print("CUTOFF parameter not set.") diamonds else: - cutoff = int(os.environ['CUTOFF']) + cutoff = int(cutoff) diamonds = diamonds[:cutoff] diamonds.to_csv('diamonds.csv', index=False) #nadpisanie pliku + diamonds # %% #przydzielanie nazwy kolumny z id