https://bugzilla.wikimedia.org/show_bug.cgi?id=55152

       Web browser: ---
            Bug ID: 55152
           Summary: Recentchanges misbehave?
           Product: Pywikibot
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1579/
Reported by: Anonymous user
Created on: 2013-02-13 09:41:03
Subject: Recentchanges misbehave?
Original description:
There are two bugs I found in recentchanges\(\) from wikipedia.py.

First, I think that the function should return every revision. However, now it
returns only pages that haven't seen before.

Should

if i\['pageid'\] not in seen:
seen.add\(i\['pageid'\]\) 

be replaced with

if i\['revid'\] not in seen:
seen.add\(i\['revid'\]\) 

?

Second, what does parameter 'includeredirects' stand for? It is useless becaue
it isn't used anywhere in the function. 

Pywikipedia trunk/pywikipedia/ \(r11072, 2013/02/10, 16:52:07, ok\)
Python 2.7.3 \(default, Sep 26 2012, 21:53:58\) 
\[GCC 4.7.2\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs

Reply via email to