aboutsummaryrefslogtreecommitdiff
path: root/app/utils.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-10 22:59:41 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-10 22:59:41 +0100
commitc490df7f5009c11ed31785dbf4b64e1c22953dda (patch)
tree52fce2189a530cc2cba92c44c53cb9f0dd867c99 /app/utils.py
parentb9e1be57e435fd8d69fa58f546b2dc1206e1f80c (diff)
downloadcheatdb-c490df7f5009c11ed31785dbf4b64e1c22953dda.tar.xz
Add ability for moderators to change linked accounts
Diffstat (limited to 'app/utils.py')
-rw-r--r--app/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/utils.py b/app/utils.py
index 07337b6..618a4aa 100644
--- a/app/utils.py
+++ b/app/utils.py
@@ -218,3 +218,9 @@ def isYes(val):
def isNo(val):
return val and not isYes(val)
+
+def nonEmptyOrNone(str):
+ if str is None or str == "":
+ return None
+
+ return str