Skip to content

Commit 87347a2

Browse files
committed
updates
1 parent 5f012a2 commit 87347a2

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

replaceValueInCommunityFromCSV.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,15 @@
88
import argparse
99
from datetime import datetime
1010

11-
baseURL = secrets.baseURL
12-
email = secrets.email
13-
password = secrets.password
14-
filePath = secrets.filePath
15-
verify = secrets.verify
16-
1711
parser = argparse.ArgumentParser()
1812
parser.add_argument('-i', '--handle', help='handle of the community. optional - if not provided, the script will ask for input')
1913
parser.add_argument('-f', '--fileName', help='the CSV file of changes. optional - if not provided, the script will ask for input')
2014
args = parser.parse_args()
2115

2216
if args.fileName:
23-
fileName = filePath+'/ETD RDF/'+args.fileName
17+
fileName = args.fileName
2418
else:
25-
fileName = filePath+'/ETD RDF/'+raw_input('Enter the file name of the CSV of changes (including \'.csv\'): ')
19+
fileName = raw_input('Enter the file name of the CSV of changes (including \'.csv\'): ')
2620
if args.handle:
2721
handle = args.handle
2822
else:
@@ -37,6 +31,14 @@
3731
print 'Editing Production'
3832
except ImportError:
3933
print 'Editing Stage'
34+
else:
35+
print 'Editing Stage'
36+
37+
baseURL = secrets.baseURL
38+
email = secrets.email
39+
password = secrets.password
40+
filePath = secrets.filePath
41+
verify = secrets.verify
4042

4143
startTime = time.time()
4244
data = {'email':email,'password':password}

0 commit comments

Comments
 (0)