mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fixed example in websupports docs. this closes #608
This commit is contained in:
parent
ed32972cbc
commit
53a0729c22
@ -198,7 +198,7 @@ specific node, and is aptly named
|
||||
username = g.user.name if g.user else None
|
||||
moderator = g.user.moderator if g.user else False
|
||||
node_id = request.args.get('node', '')
|
||||
data = support.get_data(parent_id, user_id)
|
||||
data = support.get_data(node_id, username, moderator)
|
||||
return jsonify(**data)
|
||||
|
||||
The final function that is needed will call :meth:`~.WebSupport.process_vote`,
|
||||
|
Loading…
Reference in New Issue
Block a user