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,10 +78,12 @@ public class DatabaseRepository {
p.addCompletion(new Completion(0, 0)); p.addCompletion(new Completion(0, 0));
} }
} }
// Manage groups if (hasColumn(playerResult, "name")) {
String groupName = playerResult.getString("name"); // Manage groups
if (groupName != null) { String groupName = playerResult.getString("name");
p.addGroup(makeGroup(playerResult)); if (groupName != null) {
p.addGroup(makeGroup(playerResult));
}
} }
// ADD rank // ADD rank

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");