Skip to content

Commit 3be6eeb

Browse files
committed
Update wikidata_client.rb
1 parent 73b03d9 commit 3be6eeb

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/wikidata_client.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ def login
8181
end
8282

8383
def fetch_csrf_token
84-
return true # Using OAuth instead
85-
8684
res = get(
8785
query: {
8886
action: 'query',
@@ -109,7 +107,7 @@ def add_seqcode_claim(entity_id, seqcode_accession, csrf_token)
109107
property: @accession_property,
110108
snaktype: 'value',
111109
value: seqcode_accession.to_json,
112-
# OAuth # token: csrf_token,
110+
token: csrf_token,
113111
format: 'json',
114112
summary: 'Adding SeqCode Registry accession via SeqCodeBot',
115113
bot: true
@@ -231,7 +229,7 @@ def add_reference_to_claim(claim_id, csrf_token)
231229
action: 'wbsetreference',
232230
statement: claim_id,
233231
snaks: { P248: [snak_ref, snak_time] }.to_json,
234-
# OAuth # token: csrf_token,
232+
token: csrf_token,
235233
format: 'json',
236234
summary: 'Adding source: SeqCode Registry via SeqCodeBot',
237235
bot: true

0 commit comments

Comments
 (0)