mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-06 15:44:49 +08:00
Fix issues caused by lowercasing of the join addresses
This commit is contained in:
parent
ff679d626d
commit
aa25f2ff07
@ -440,10 +440,10 @@ public class GraphJSONCreator {
|
||||
}
|
||||
|
||||
public void translateUnknown(Map<String, Integer> joinAddresses) {
|
||||
Integer unknown = joinAddresses.get("Unknown");
|
||||
Integer unknown = joinAddresses.get("unknown");
|
||||
if (unknown != null) {
|
||||
joinAddresses.remove("Unknown");
|
||||
joinAddresses.put(locale.getString(GenericLang.UNKNOWN), unknown);
|
||||
joinAddresses.remove("unknown");
|
||||
joinAddresses.put(locale.getString(GenericLang.UNKNOWN).toLowerCase(), unknown);
|
||||
}
|
||||
}
|
||||
}
|
@ -285,7 +285,7 @@ public interface UserInfoQueriesTest extends DatabaseTestPreparer {
|
||||
default void joinAddressQueryHasNoNullValues() {
|
||||
joinAddressCanBeNull();
|
||||
|
||||
Map<String, Integer> expected = Collections.singletonMap("Unknown", 1);
|
||||
Map<String, Integer> expected = Collections.singletonMap("unknown", 1);
|
||||
Map<String, Integer> result = db().query(UserInfoQueries.joinAddresses());
|
||||
assertEquals(expected, result);
|
||||
}
|
||||
@ -294,7 +294,7 @@ public interface UserInfoQueriesTest extends DatabaseTestPreparer {
|
||||
default void serverJoinAddressQueryHasNoNullValues() {
|
||||
joinAddressCanBeNull();
|
||||
|
||||
Map<String, Integer> expected = Collections.singletonMap("Unknown", 1);
|
||||
Map<String, Integer> expected = Collections.singletonMap("unknown", 1);
|
||||
Map<String, Integer> result = db().query(UserInfoQueries.joinAddresses(serverUUID()));
|
||||
assertEquals(expected, result);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user