This commit is contained in:
Dima-1 2021-01-29 13:56:10 +02:00
parent 2ae5bb6301
commit e150d39c61

View file

@ -193,9 +193,9 @@ public class EntityParser {
if (wbs != null) {
am.setAdditionalInfo("wikipedia", wbs);
}
String tagCategory = getTagCategory(entity);
if (tagCategory != null) {
am.setAdditionalInfo("profile", tagCategory);
String profileName = getProfileName(entity);
if (profileName != null) {
am.setAdditionalInfo("profile", profileName);
}
if (checkAmenitiesToAdd(am, amenitiesList) && !"no".equals(am.getSubType())) {
amenitiesList.add(am);
@ -206,7 +206,7 @@ public class EntityParser {
return amenitiesList;
}
private static String getTagCategory(Entity e) {
private static String getProfileName(Entity e) {
Map<String, String> tags = e.getTags();
for (String key : tags.keySet()) {
if (key.startsWith("tag_")) {