adicao do campo "played" nas jornadas firebase
This commit is contained in:
2
.idea/vcs.xml
generated
2
.idea/vcs.xml
generated
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -191,14 +191,19 @@ public class StandingsScraper {
|
||||
matchMap.put("away_logo", awayLogo);
|
||||
|
||||
String homeGoalsStr = String.valueOf(match.get("homeGoals"));
|
||||
String awayGoalsStr = String.valueOf(match.get("awayGoals"));
|
||||
|
||||
boolean played = false;
|
||||
if (homeGoalsStr != null && !homeGoalsStr.equals("null") && !homeGoalsStr.trim().isEmpty()) {
|
||||
matchMap.put("home_golos", (int) Double.parseDouble(homeGoalsStr));
|
||||
played = true;
|
||||
}
|
||||
|
||||
String awayGoalsStr = String.valueOf(match.get("awayGoals"));
|
||||
if (awayGoalsStr != null && !awayGoalsStr.equals("null") && !awayGoalsStr.trim().isEmpty()) {
|
||||
matchMap.put("away_golos", (int) Double.parseDouble(awayGoalsStr));
|
||||
played = true;
|
||||
}
|
||||
matchMap.put("played", played);
|
||||
|
||||
Object dateObj = match.get("date");
|
||||
if (dateObj != null && !String.valueOf(dateObj).equals("null")) {
|
||||
|
||||
Reference in New Issue
Block a user