mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +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
|
@Override
|
||||||
@NonNull
|
@NonNull
|
||||||
public Single<Integer> getUploadCount(String userName) {
|
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";
|
"https://tools.wmflabs.org/urbanecmbot/uploadsbyuser/uploadsbyuser.py?user=%s";
|
||||||
|
|
||||||
return Single.fromCallable(() -> {
|
return Single.fromCallable(() -> {
|
||||||
String url = String.format(
|
String url = String.format(
|
||||||
Locale.ENGLISH,
|
Locale.ENGLISH,
|
||||||
UPLOAD_COUNT_URL_TEMPLATE,
|
uploadCountUrlTemplate,
|
||||||
new PageTitle(userName).getText());
|
new PageTitle(userName).getText());
|
||||||
HttpResponse response = Http.get(url).use(httpClient).asResponse();
|
HttpResponse response = Http.get(url).use(httpClient).asResponse();
|
||||||
String uploadCount = EntityUtils.toString(response.getEntity()).trim();
|
String uploadCount = EntityUtils.toString(response.getEntity()).trim();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue