Skip to content

Commit 6558e6a

Browse files
committed
instructions for adding support for a report
1 parent acfc153 commit 6558e6a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@ This project allows the [Community Tech bot](https://en.wikipedia.org/wiki/User:
1919
* Editors eligible for autopatrol privileges
2020
* Active editors with the longest-established accounts
2121

22-
## Usage
22+
## Generating a report
2323
* Log into the Toolforge bastion using your Wikimedia developer account ```ssh username@login.tools.wmflabs.org```
2424
* Become your tool account ```become database-reports```
2525
* Run ```python main.py test articles_by_size```. It takes two arguments; in this example test refers to `test.wikipedia.org` and `articles_by_size` is the type of statistics you're requesting. This command outputs the name of the page on which the report got dumped
2626
* To alter the default settings for periodic updates, make changes to the crontab file ```crontab -e```
2727

28+
## Adding support for a report
29+
* To add support for a specific statistics that you would like to see in a report, declare a function in `main.py` and define it in `reports.py`
30+
* To provide support for translations in a specific language, include the dictionary in `i18n/i18n.py`
31+
2832
## Contributing
2933
Bug reports, fixes, and new features are welcomed. If you'd like to contribute code please:
3034
* Fork the project

0 commit comments

Comments
 (0)