You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,16 @@ This project allows the [Community Tech bot](https://en.wikipedia.org/wiki/User:
19
19
* Editors eligible for autopatrol privileges
20
20
* Active editors with the longest-established accounts
21
21
22
-
## Usage
22
+
## Generating a report
23
23
* Log into the Toolforge bastion using your Wikimedia developer account ```ssh username@login.tools.wmflabs.org```
24
24
* Become your tool account ```become database-reports```
25
25
* 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
26
26
* To alter the default settings for periodic updates, make changes to the crontab file ```crontab -e```
27
27
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
+
28
32
## Contributing
29
33
Bug reports, fixes, and new features are welcomed. If you'd like to contribute code please:
0 commit comments