Fixed wrong html being cached due to DESC order of queries.

This commit is contained in:
Rsl1122 2018-02-07 15:05:42 +02:00
parent 1c91174ec0
commit 1945984fc4

View File

@ -155,9 +155,10 @@ public class TransferTable extends Table {
while (set.next()) {
String uuidString = set.getString(columnExtraVariables);
UUID uuid = UUID.fromString(uuidString);
String html64 = set.getString(columnContent);
htmlPerUUID.put(uuid, html64);
if (!htmlPerUUID.containsKey(uuid)) {
htmlPerUUID.put(uuid, set.getString(columnContent));
}
}
return htmlPerUUID;
}