diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-07-10 22:59:41 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2020-07-10 22:59:41 +0100 |
commit | c490df7f5009c11ed31785dbf4b64e1c22953dda (patch) | |
tree | 52fce2189a530cc2cba92c44c53cb9f0dd867c99 /app/utils.py | |
parent | b9e1be57e435fd8d69fa58f546b2dc1206e1f80c (diff) | |
download | cheatdb-c490df7f5009c11ed31785dbf4b64e1c22953dda.tar.xz |
Add ability for moderators to change linked accounts
Diffstat (limited to 'app/utils.py')
-rw-r--r-- | app/utils.py | 6 |
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 |