Skip to content

Commit

Permalink
update pom
Browse files Browse the repository at this point in the history
  • Loading branch information
nicol authored and nicol committed Jul 19, 2024
1 parent 0706fe9 commit 5a1b962
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>3.4.0</version>
<version>3.4.1</version>
</dependency>
<dependency>
<groupId>org.xerial</groupId>
Expand Down Expand Up @@ -512,7 +512,7 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.14.0</version>
<version>3.15.0</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
Expand Down
13 changes: 6 additions & 7 deletions src/main/java/org/magic/api/dashboard/impl/EchoMTGDashBoard.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@

public class EchoMTGDashBoard extends AbstractDashBoard {

private static final String HTTP_PROTOCOL = "https://";
private static final String WEBSITE = "www.echomtg.com";
private static final String WEBSITE = "https://www.echomtg.com";
private MTGHttpClient client;


Expand All @@ -48,10 +47,10 @@ private String getCardId(MTGCard mc) {
if(mc.isShowCase())
extra=" (Showcase)";

var arr = RequestBuilder.build().url(HTTP_PROTOCOL+WEBSITE+"/user/")
var arr = RequestBuilder.build().url(WEBSITE+"/user/")
.get()
.setClient(client)
.url(HTTP_PROTOCOL+WEBSITE+"/api/search/mass/")
.url(WEBSITE+"/api/search/mass/")
.addContent("search",mc.getName() + extra)
.addContent("wcExpansion",mc.getEdition().getSet())
.addContent("limit","30")
Expand All @@ -77,7 +76,7 @@ private void init() throws IOException {
}


var res = RequestBuilder.build().url(HTTP_PROTOCOL+WEBSITE+"/user/")
var res = RequestBuilder.build().url(WEBSITE+"/user/")
.post()
.setClient(client)
.addContent("email",getAuthenticator().get("EMAIL"))
Expand Down Expand Up @@ -106,7 +105,7 @@ protected HistoryPrice<MTGCard> getOnlinePricesVariation(MTGCard mc, boolean foi
}


var arr = RequestBuilder.build().url(HTTP_PROTOCOL+WEBSITE+"/cache/"+id+"."+(foil?"f":"r"+".json"))
var arr = RequestBuilder.build().url(WEBSITE+"/cache/"+id+"."+(foil?"f":"r"+".json"))
.get()
.setClient(client)
.toJson()
Expand Down Expand Up @@ -137,7 +136,7 @@ protected EditionsShakers getOnlineShakesForEdition(MTGEdition ed) throws IOExce

init();

var data = RequestBuilder.build().url(HTTP_PROTOCOL+WEBSITE+"/api/data/set/")
var data = RequestBuilder.build().url(WEBSITE+"/api/data/set/")
.addContent("set_code",ed.getId())
.get()
.setClient(client)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public Object getValueAt(int row, int column) {
case 0 : return it;
case 1 : return it.getDateCreation();
case 2 : return it.getContact();
case 3 : return it.getItems().size();
case 3 : return it.getItems().stream().mapToInt(msi->msi.getQte()).sum();
case 4 : return it.getShippingPrice();
case 5 : return it.getReduction();
case 6 : return it.total();
Expand Down

0 comments on commit 5a1b962

Please sign in to comment.