derenrich reopened this task as "Open".
derenrich added a comment.


  i restored the sandbox to a state where it demonstrates the bug
  
    >>> import pywikibot
    >>> item = pywikibot.ItemPage(pywikibot.Site('wikidata'), 'Q4115189')
    >>> item.get_value_at_timestamp("P31", pywikibot.WbTime(year=2020, month=1, 
day=1))
    ItemPage('Q15242449')
  
  looking at the source 
<https://github.com/wikimedia/pywikibot/blob/d0dad011d3fb6d0d055ad5d1e758d2068d9aa1d2/pywikibot/page/_wikibase.py#L1380>
 i'm unclear if this is an oversight or by design.
  
  the code does have a comment saying
  
  `"""Find the first best ranked claim at a given timestamp."""`
  
  but unless I'm confused it never checks rank

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]

Reply via email to