small fix
This commit is contained in:
parent
cfb2dbc4cd
commit
c03a3cef69
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ def create_campus(token):
|
|||
#check if name already exists
|
||||
try:
|
||||
query = Campus.all()
|
||||
query.filter("title = ", payload['title'])
|
||||
query.filter("title =", payload['title'])
|
||||
for c in query.run(limit=1):
|
||||
return forbidden("Campus with same name already exists")
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in a new issue