Skip to content

Set rank of claim as preferred and other claims to normal #566

Answered by LeMyst
lubianat asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @lubianat

I'm not sure if you want more info about setting a rank or updating population.
I did the operation for French Population earlier this year and updated this repo (mainly the _fastrun part):
https://github.com/LeMyst/wd-population

I think https://github.com/LeMyst/wd-population/blob/master/communes_fastrun.py can be a good start.

Line 98 I set all the rank to NORMAL (maybe do this only of claims who are actually preferred, to avoid setting a DEPRECATED to normal, I will fix this in my version 😅 )
Line 108 I set my new claim (in append or replace mode) with the rank PREFERRED, if it already exist, it will be updated.

If you have more question about the fastrun mode, you can …

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by LeMyst
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #562 on June 15, 2023 18:27.