Skip to content

Conversation

@framawiki
Copy link
Contributor

No description provided.

@framawiki framawiki changed the title bugfix nerf categories (#10) + dict bugfix nerf categories + dict Sep 20, 2016
@framawiki framawiki mentioned this pull request Sep 20, 2016
@framawiki framawiki mentioned this pull request Sep 20, 2016
@framawiki framawiki changed the title bugfix nerf categories + dict bugfix nerf categories + new most_watched report + fr dict Jan 30, 2017
@Niharika29
Copy link
Collaborator

Is this ready for a merge? :)

displayTable.py Outdated
@param wiki - Language code for the wiki (eg: 'en', 'es', 'it')
@param content - Python 2D array (nested list) containing table entries
@param desc - Key to the description message of the report
@param numbers - If table have to contain numbers of rows
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this param used anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet used.
My main idea was to create an option to allow to add lines number in tables. I've reverted it and for the time being preferred hard code it for each report that need it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still see this in the diff. Better remove it completely and we can add something to automatically add line numbers. That would be simpler.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@framawiki framawiki changed the title bugfix nerf categories + new most_watched report + fr dict bugfix nerf categories + new most_watched & most_used_external_links reports + fr dict Feb 7, 2017
@framawiki
Copy link
Contributor Author

This is ready to merge.

def pages_with_most_revisions( self ):
self.rep.pages_with_most_revisions()

def blank_pages( self ):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why this has been dropped. Is the report no longer needed? Sorry I haven't looked at this stuff in a while.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just see that this function do nothing - looks like the rest of this quarry was removed

Copy link
Contributor Author

@framawiki framawiki Feb 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But at same time you have written "fixed in BernsteinBot" in remove commit message, is it possible to keep the function, if it's functional, in this repo ?

reports.py Outdated
i += 1

# Format the data as wikitext
text = display_report(self.wiki, content, 'most_watched-desc')
Copy link
Collaborator

@Niharika29 Niharika29 Feb 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

( self.wiki, content, 'most-watched-desc' )
Similarly for line below.
Just trying to keep a consistent style here. :)

reports.py Outdated
reports_base_url = dict_obj[ str( 'reports_base_url' ) ]
report_title = dict_obj[ str( title ) ]
print str( reports_base_url + report_title )
print(str( reports_base_url + report_title ))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the difference?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Habits :) removed.

i18n/i18n.py Outdated
"most_edited_page_last_month-editcount": "Revisions",

"most_watched-page-title": "Most-watched pages",
"most_watched-desc": "Most-watched non-deleted pages (limited to the first 1000 entries)",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-deleted seems obvious, no?

Copy link
Contributor Author

@framawiki framawiki Feb 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I've removed this in the English dict, but keep for French : there are few old pages that was deleted but followed by lot of accounts.

@framawiki framawiki changed the title bugfix nerf categories + new most_watched & most_used_external_links reports + fr dict bugfix nerf categories + new most_watched + fr dict Feb 27, 2017
@framawiki
Copy link
Contributor Author

Thanks for your review and advice :)

@Niharika29
Copy link
Collaborator

Hey, @framawiki. Sorry to get back to this so late. Are you still interested in getting this merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants