summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil ├śrbekk <orbekk@pvv.ntnu.no>2010-09-04 12:07:23 -0400
committerKjetil ├śrbekk <orbekk@pvv.ntnu.no>2010-09-04 12:07:23 -0400
commit3e7c93a07bb995f7a6a93ff6edd0a11dec729fd6 (patch)
tree79a5eddc194954d53ccdb903814e7ba1ce00b793
parenta6bf93837bc8c77840db93b4671fe102dfb339f9 (diff)
Remove the mapping for dropdb.
-rw-r--r--src/WEB-INF/web.xml10
-rw-r--r--src/lq/ImportQuotes.java2
2 files changed, 1 insertions, 11 deletions
diff --git a/src/WEB-INF/web.xml b/src/WEB-INF/web.xml
index 1fa3dab..bc14f52 100644
--- a/src/WEB-INF/web.xml
+++ b/src/WEB-INF/web.xml
@@ -37,16 +37,6 @@
</servlet-mapping>
<servlet>
- <servlet-name>dropdb</servlet-name>
- <servlet-class>lq.DropData</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>dropdb</servlet-name>
- <url-pattern>/dropdb</url-pattern>
- </servlet-mapping>
-
- <servlet>
<servlet-name>new_admin</servlet-name>
<servlet-class>lq.AddAdmin</servlet-class>
</servlet>
diff --git a/src/lq/ImportQuotes.java b/src/lq/ImportQuotes.java
index db0a633..4016719 100644
--- a/src/lq/ImportQuotes.java
+++ b/src/lq/ImportQuotes.java
@@ -61,7 +61,7 @@ public class ImportQuotes extends HttpServlet {
Quote q = quotes.get(importId);
pm.makePersistent(q);
for (Vote v : votes) {
- if (v.getQuoteId() == q.getId()) {
+ if (v.getQuoteId().equals(q.getId())) {
pm.makePersistent(v);
}
}