aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset/utilities.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/maintenance/dataset/utilities.py')
-rw-r--r--wqflask/maintenance/dataset/utilities.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/maintenance/dataset/utilities.py b/wqflask/maintenance/dataset/utilities.py
index 5ffa9047..6033d7b4 100644
--- a/wqflask/maintenance/dataset/utilities.py
+++ b/wqflask/maintenance/dataset/utilities.py
@@ -10,10 +10,10 @@ def get_cursor():
cursor = con.cursor()
return cursor
-def clearspaces(s):
+def clearspaces(s, default=None):
if s:
s = re.sub('\s+', ' ', s)
s = s.strip()
return s
else:
- return None
+ return default