Small fixes

This commit is contained in:
xemeds
2020-07-23 17:07:21 +00:00
parent 23d49a47d2
commit 962f352917
3 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ def validate_URL(form, field):
return
# If the url contains spaces or does not have any dots
if field.data.count(" ") > 0 or field.data.count(".") == 0:
if (" " in field.data) or not("." in field.data):
# Raise a ValidationError
raise ValidationError("Invalid URL")