GithubHelp home page GithubHelp logo

enterprisey / afdstats Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 5.0 32 KB

A Wikipedia tool to analyze a user's history of contributions to Articles for Deletion discussions.

Home Page: http://tools.wmflabs.org/afdstats/

CSS 32.38% Python 58.82% HTML 8.80%

afdstats's People

Contributors

enterprisey avatar musikanimal avatar pppery avatar sanyam-git avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

afdstats's Issues

Dates should never show leading zeros

Currently, the dates are inconsistent when it comes to the first nine days of a month. Nominations one has started on the first nine days of a month are shown with a leading zero in the date in the AfD stats, while votes on nominations started by other users are shown without a leading zero in the date in the AfD stats.

None of the dates in the "Date" column should ever show leading zeros, regardless of whether the nomination was originally started by the same user or a different user.

"83.5% of AfD's were matches" should be in bold

"83.5% of AfD's were matches" should be in bold

To help differentiate it from the less accurate "Number of AfD's where vote matched result (green cells): 66 (81.5%)", because that percentage is lowered by the 2.5% "no consensus" results.

image

Add option for draftification

Currently the tool doesn't understand "draftify" as an option for a deletion discussion. Draftification is an uncommon but still valid result of a deletion discussion, so I feel like the tool should also list it.

Mention total # of AFD votes detected

Suggestion: Mention the total # of AFD votes counted/detected. Right now the total number of AFD pages edited is displayed, but not the total number of votes. Consider adding it beneath this text:

Total number of unique AfD pages edited by Novem Linguae: 47

Beneath the above text, we could add:

Total number of AfD votes detected in this query: 32

Signatures with underscores are not detected

Examples:

This is happening with every user who uses underscores instead of spaces in their signature – it's only picking up their nominations because that part isn't based on signature matching.

April Fools nominations

This tool currently counts April Fools Day nomination !votes, which can throw off the numbers (depending on how actively someone participates). The issue could be resolved by having the tool ignore all !votes on pages that transclude {{humor}}.

should detect unsigned template

Example: Actualcpscm's !vote here is not counted because their signature was an unsigned template.

https://en.wikipedia.org/wiki/Wikipedia:Articles_for_deletion/Moises_Lino_e_Silva_(3rd_nomination)

Note that the {{Unsigned}} template always ends up substituted, so would need to check for the substituted code, not the template itself.

<!-- Template:Unsigned --><small class="autosigned">—&nbsp;Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Actualcpscm|Actualcpscm]] ([[User talk:Actualcpscm#top|talk]] • [[Special:Contributions/Actualcpscm|contribs]]) </small>

Error for any query since today, 2018-04-01

If this has not been caused by any software modification of adfstats, then something has changed on the Toolserver, maybe.

Traceback (most recent call last): File "/data/project/afdstats/public_html//afdstats.py", line 91, in main db = MySQLdb.connect(db='enwiki_p', host="enwiki.labsdb", read_default_file=os.path.expanduser("~/replica.my.cnf")) File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in __init__ super(Connection, self).__init__(*args, **kwargs2) OperationalError: (2013, "Lost connection to MySQL server at 'reading initial communication packet', system error: 0") None

Fatal error.

Example queries:

https://tools.wmflabs.org/afdstats/afdstats.py?name=ToBeFree&max=&startdate=&altname=
https://tools.wmflabs.org/afdstats/afdstats.py?name=ToBeFree&max=500&startdate=&altname=
https://tools.wmflabs.org/afdstats/afdstats.py?name=Sergecross73&max=500&startdate=&altname=

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.