Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 8b8b7e7

Browse files
committed
Add moderation fee to profile api
1 parent 06c0d13 commit 8b8b7e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/restapi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ def update_profile(self, request):
333333
u.vendor = str_to_bool(request.args["vendor"][0])
334334
if "moderator" in request.args:
335335
u.moderator = str_to_bool(request.args["moderator"][0])
336+
if "moderation_fee" in request.args:
337+
u.moderation_fee = float(request.args["moderation_fee"][0])
336338
if "website" in request.args:
337339
u.website = request.args["website"][0]
338340
if "email" in request.args:

0 commit comments

Comments
 (0)