Removed manual bad JSON-encoding

This commit is contained in:
Sybren A. Stüvel 2017-12-07 17:29:49 +01:00
parent dfc224d8a9
commit d20f3d5668

View File

@ -42,7 +42,7 @@ class UserProfileForm(Form):
user = User.find(current_user.objectid, api=api)
if user.username != self.username.data:
username = User.find_first(
{'where': '{"username": "%s"}' % self.username.data},
{'where': {"username": self.username.data}},
api=api)
if username: