Commit e6fd3bdc authored by Marek Kadlečík's avatar Marek Kadlečík
Browse files

Add more sample players

parent f8ff6438
Pipeline #144748 passed with stage
in 1 minute
......@@ -12,8 +12,6 @@ import cz.muni.fi.pa165.services.tournament.TournamentService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.argon2.Argon2PasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
......@@ -44,11 +42,14 @@ public class SampleDataLoadingFacadeImpl implements SampleDataLoadingFacade {
TeamEntity g2_esports = team("g2_esports", CountryEnum.GERMANY);
TeamEntity skt_t1 = team("skt_t1", CountryEnum.SOUTH_KOREA);
PlayerEntity crimsix = player("9384b466-badf-40ca-bbeb-4d8f6eb98042", "Ian Porter", "poter",
PlayerEntity poter = player("9384b466-badf-40ca-bbeb-4d8f6eb98042", "Ian Porter", "poter",
"heslo", true, CountryEnum.AFGHANISTAN, g2_esports, 5, 6, 7);
PlayerEntity JJoNak = player("6e374a4e-5213-4581-847c-45f9e73ffe90", "Bang Seong-hyun ", "bang",
PlayerEntity bang = player("6e374a4e-5213-4581-847c-45f9e73ffe90", "Bang Seong-hyun", "bang",
"heslo", true, CountryEnum.ALBANIA, skt_t1, 15, 25, 100);
PlayerEntity great = player("3f41380c-ebca-11ec-8ea0-0242ac120002", "John Great", "great",
"heslo", false, CountryEnum.AFGHANISTAN, g2_esports, 9, 1, 50);
PlayerEntity galvo = player("5863e83e-ebca-11ec-8ea0-0242ac120002", "Pablo Galvani", "galvo",
"heslo", false, CountryEnum.ALBANIA, skt_t1, 14, 15, 70);
log.info("Loaded Sample Players.");
TournamentEntity msi = tournament("MSI", "Ottawa" ,CountryEnum.SOUTH_KOREA, 10000, TournamentFormat.DEFAULT, 10);
......
......@@ -26,7 +26,7 @@
<tbody>
<c:forEach items="${matches}" var="match">
<tr>
<td><c:out value="${match.tournament.city}"/></td>
<td><c:out value="${match.tournament.name}"/></td>
<td><c:out value="${match.teams.size()}"/></td>
<td><c:out value="${match.playerList.size()}"/></td>
<td>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment