From 16fcde1de6b64010a17510f554eb370f307e3e1b Mon Sep 17 00:00:00 2001 From: Alix Lourme Date: Tue, 24 Aug 2021 15:57:42 +0200 Subject: [PATCH] Fix #202 : Display league ID in title --- README.md | 2 +- src/main/java/org/blondin/mpg/Main.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6dc1c16..c54d61b 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ The main output is displaying: - Your team line by line, ordered by efficiency score (*Eff.*), with the players quotation/prices (*Q.*): ``` -========== Your league name ========== +========== Your league name (leagueId) ========== Out: Aouar Houssem (M - 34.88) - INJURY_ORANGE - Inconnu (depuis 12/11) - Inconnu Out: Ambroise Oyongo (D - 11.85) - INJURY_ORANGE - Blessure au genou (depuis 04/11) - Inconnu diff --git a/src/main/java/org/blondin/mpg/Main.java b/src/main/java/org/blondin/mpg/Main.java index a57e5f2..6128787 100644 --- a/src/main/java/org/blondin/mpg/Main.java +++ b/src/main/java/org/blondin/mpg/Main.java @@ -84,7 +84,7 @@ static void process(ApiClients apiClients, Config config) { } static void processLeague(League league, ApiClients apiClients, Config config) { - LOG.info("========== {} ==========", league.getName()); + LOG.info("========== {} ({}) ==========", league.getName(), league.getId()); if (league.getChampionship().equals(ChampionshipType.CHAMPIONS_LEAGUE)) { LOG.info("\nSorry, Champions League is currently not supported.\n"); return;