X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2Fwot%2FMyPoints.java;h=ffe68986b85fd6b46a3d1d18fac444cdd2a36911;hb=a9a62c51d7042f32585ac362e980a0bbd7e34eb0;hp=cd8b732e454b3cd4d5209c236fcd3afc7e3c5abc;hpb=a71868622be6824dcb4cc1ce10bd0c1c473e9d5c;p=gigi.git diff --git a/src/org/cacert/gigi/pages/wot/MyPoints.java b/src/org/cacert/gigi/pages/wot/MyPoints.java index cd8b732e..ffe68986 100644 --- a/src/org/cacert/gigi/pages/wot/MyPoints.java +++ b/src/org/cacert/gigi/pages/wot/MyPoints.java @@ -1,14 +1,12 @@ package org.cacert.gigi.pages.wot; import java.io.IOException; -import java.sql.SQLException; import java.util.HashMap; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.cacert.gigi.GigiApiException; -import org.cacert.gigi.User; +import org.cacert.gigi.dbObjects.User; import org.cacert.gigi.output.AssurancesDisplay; import org.cacert.gigi.pages.Page; @@ -16,9 +14,9 @@ public class MyPoints extends Page { public static final String PATH = "/wot/mypoints"; - private AssurancesDisplay myDisplay = new AssurancesDisplay("asArr"); + private AssurancesDisplay myDisplay = new AssurancesDisplay("asArr", false); - private AssurancesDisplay toOtherDisplay = new AssurancesDisplay("otherAsArr"); + private AssurancesDisplay toOtherDisplay = new AssurancesDisplay("otherAsArr", true); public MyPoints(String title) { super(title); @@ -29,14 +27,9 @@ public class MyPoints extends Page { HashMap vars = new HashMap(); vars.put("pointlist", myDisplay); vars.put("madelist", toOtherDisplay); - try { - User user = getUser(req); - vars.put("asArr", user.getReceivedAssurances()); - vars.put("otherAsArr", user.getMadeAssurances()); - } catch (SQLException e) { - new GigiApiException(e).format(resp.getWriter(), getLanguage(req)); - return; - } + User user = getUser(req); + vars.put("asArr", user.getReceivedAssurances()); + vars.put("otherAsArr", user.getMadeAssurances()); getDefaultTemplate().output(resp.getWriter(), getLanguage(req), vars); }