Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disabled preventing empty string save #13

Merged
merged 1 commit into from
Feb 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -970,9 +970,9 @@ def sanitize_step_data(
if (
str(new_row[i])[:1] == '"' and str(new_row[i])[-1:] == '"'
): # String is within double quotes, indicating it should not be changed
new_row[i] = str(new_row[i])[
1 : len(new_row[i]) - 1
] # Remove surrounding quotes
# new_row[i] = str(new_row[i])[
# 1 : len(new_row[i]) - 1
# ] # Remove surrounding quotes
continue # Do not change string

# Sanitize the column for this row
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ def sanitize(step_data):
if (
str(new_row[i])[:1] == '"' and str(new_row[i])[-1:] == '"'
): # String is within double quotes, indicating it should not be changed
new_row[i] = str(new_row[i])[
1 : len(new_row[i]) - 1
] # Remove surrounding quotes
# new_row[i] = str(new_row[i])[
# 1 : len(new_row[i]) - 1
# ] # Remove surrounding quotes
continue # Do not change string

new_row[i] = new_row[i].replace(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def Set_Shared_Variables(key, value, protected=False, allowEmpty=False, print_va
sModuleInfo = inspect.currentframe().f_code.co_name + " : " + MODULE_NAME
global shared_variables, protected_variables
if not allowEmpty and (
key == "" or key == None or value == "" or value == None
key == "" or key == None
): # if input is invalid
return "failed"
else: # Valid input
Expand Down