mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Rename misnamed variable
This commit is contained in:
parent
2b30924242
commit
d1e53db73a
1 changed files with 2 additions and 2 deletions
|
|
@ -375,13 +375,13 @@ public class ApacheHttpClientMediaWikiApi implements MediaWikiApi {
|
|||
@Override
|
||||
@NonNull
|
||||
public Single<Integer> getUploadCount(String userName) {
|
||||
final String UPLOAD_COUNT_URL_TEMPLATE =
|
||||
final String uploadCountUrlTemplate =
|
||||
"https://tools.wmflabs.org/urbanecmbot/uploadsbyuser/uploadsbyuser.py?user=%s";
|
||||
|
||||
return Single.fromCallable(() -> {
|
||||
String url = String.format(
|
||||
Locale.ENGLISH,
|
||||
UPLOAD_COUNT_URL_TEMPLATE,
|
||||
uploadCountUrlTemplate,
|
||||
new PageTitle(userName).getText());
|
||||
HttpResponse response = Http.get(url).use(httpClient).asResponse();
|
||||
String uploadCount = EntityUtils.toString(response.getEntity()).trim();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue