Compare commits

..

2 commits

Author SHA1 Message Date
75277c5b03 Email sender 2023-09-09 20:58:41 +02:00
a68bc91459 fix get player when no fetch group 2023-09-09 20:47:56 +02:00
2 changed files with 7 additions and 5 deletions

View file

@ -78,11 +78,13 @@ public class DatabaseRepository {
p.addCompletion(new Completion(0, 0)); p.addCompletion(new Completion(0, 0));
} }
} }
if (hasColumn(playerResult, "name")) {
// Manage groups // Manage groups
String groupName = playerResult.getString("name"); String groupName = playerResult.getString("name");
if (groupName != null) { if (groupName != null) {
p.addGroup(makeGroup(playerResult)); p.addGroup(makeGroup(playerResult));
} }
}
// ADD rank // ADD rank
PreparedStatement completionsStmt = DatabaseQuery.GET_PLAYER_RANK.prepare(con); PreparedStatement completionsStmt = DatabaseQuery.GET_PLAYER_RANK.prepare(con);

View file

@ -41,7 +41,7 @@ public class Mail {
msg.addHeader("format", "flowed"); msg.addHeader("format", "flowed");
msg.addHeader("Content-Transfer-Encoding", "8bit"); msg.addHeader("Content-Transfer-Encoding", "8bit");
msg.setFrom(new InternetAddress(fromAddress, "NoReply-JD")); msg.setFrom(new InternetAddress(fromAddress, "Peer-at Code"));
msg.setReplyTo(InternetAddress.parse(fromAddress, false)); msg.setReplyTo(InternetAddress.parse(fromAddress, false));
msg.setSubject(subject, "UTF-8"); msg.setSubject(subject, "UTF-8");
msg.setText(text, "UTF-8"); msg.setText(text, "UTF-8");