Skip to content

Commit

Permalink
Merge pull request #17 from navino-evans/publishing-edits
Browse files Browse the repository at this point in the history
Fix failing prominence edit
  • Loading branch information
gabrielchl committed Aug 17, 2020
2 parents 7ef7e28 + 45fb151 commit 1afaa36
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mdvt/contribute/route.py
Expand Up @@ -13,6 +13,7 @@
from mdvt.main.util import is_logged_in

from datetime import datetime
import json

contribute_bp = Blueprint('contribute', __name__)

Expand Down Expand Up @@ -250,21 +251,21 @@ def api_contribute():
params = {
'action': 'wbsetclaim',
'format': 'json',
'claim': {
'claim': json.dumps({
"mainsnak": {
"snaktype": "value",
"property": "P180",
"datavalue": {
"value": {
"type": "wikibase-entityid",
"id": question.depict_value
}
},
"type": "wikibase-entityid"
}
},
"type": "statement",
"id": question.claim_id,
"rank": correct_rank
}
})
}
make_edit_call(params)
if question.type == 'P180':
Expand Down

0 comments on commit 1afaa36

Please sign in to comment.