Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Fayder Florez committed Apr 30, 2017
2 parents bcf1694 + b5c2c19 commit 239a82c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion python/countries-input.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion python/countries-output.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions python/crawlers/currencies.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import requests

Expand Down
3 changes: 1 addition & 2 deletions python/updater.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This is only for countriesV2
# 1- load countries-input.json
# 2- crawl,parse and update population
# 3- crawl,parse and update gini
# 2- crawl,parse and update json
# 4- save json string in new file

import json
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/fayder/restcountries/domain/BaseCountry.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package fayder.restcountries.domain;

import fayder.restcountries.v1.domain.CountryTranslations;

import java.util.List;

public class BaseCountry {
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/fayder/restcountries/v2/domain/Country.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package fayder.restcountries.v2.domain;

import com.google.gson.annotations.SerializedName;
import fayder.restcountries.domain.BaseCountry;
import org.codehaus.jackson.annotate.JsonIgnore;

Expand All @@ -14,6 +15,8 @@ public class Country extends BaseCountry {
private List<Language> languages;
private Translations translations;
private String flag;
@SerializedName("european_union")
private boolean europeanUnion;

public List<Currency> getCurrencies() {
return currencies;
Expand Down Expand Up @@ -42,4 +45,8 @@ public Translations getTranslations() {
public String getFlag() {
return flag;
}

public boolean isEuropeanUnion() {
return europeanUnion;
}
}
2 changes: 1 addition & 1 deletion src/main/resources/countriesV2.json

Large diffs are not rendered by default.

0 comments on commit 239a82c

Please sign in to comment.