derenrich created this task.
derenrich added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
**Steps to replicate the issue** (include links if applicable):
- run `item.get_value_at_timestamp("P31", pywikibot.WbTime(year=2020,
month=1, day=1))` over this page
https://www.wikidata.org/w/index.php?title=Q4115189&oldid=2418343902
- it returns `wikidata:Q15242449` even though the statement that asserts that
is deprecated
**What happens?**:
the bot would believe that as of today the value for this property is
`Q15242449` when in fact wikidata is asserting that it is `Q5`.
**What should have happened instead?**:
now obviously both uses could be what you want but given the name of the
function I think `Q5` is the right answer. I suggest either changing it or
adding an kwarg to specify if a back compat break is no good.
unrelatedly but would you accept pull requests for other similar utility
functions? i have some in my repo that I use that could be generally useful.
**Software version** (on `Special:Version` page; skip for WMF-hosted wikis
like Wikipedia):
name = "pywikibot"
version = "10.5.0"
running against live wikidata
**Other information** (browser name/version, screenshots, etc.):
tagging Xqt because you seem to be the main (only) dev here? i'm unclear on
ownership here
TASK DETAIL
https://phabricator.wikimedia.org/T407701
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]