summaryrefslogtreecommitdiff
path: root/src/main/java/com/p4square/f1oauth/F1ProgressReporter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/p4square/f1oauth/F1ProgressReporter.java')
-rw-r--r--src/main/java/com/p4square/f1oauth/F1ProgressReporter.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/p4square/f1oauth/F1ProgressReporter.java b/src/main/java/com/p4square/f1oauth/F1ProgressReporter.java
index 8382020..1514043 100644
--- a/src/main/java/com/p4square/f1oauth/F1ProgressReporter.java
+++ b/src/main/java/com/p4square/f1oauth/F1ProgressReporter.java
@@ -1,6 +1,7 @@
package com.p4square.f1oauth;
import com.p4square.grow.frontend.ProgressReporter;
+import com.p4square.grow.model.Chapters;
import org.apache.log4j.Logger;
import org.restlet.security.User;
@@ -29,8 +30,8 @@ public class F1ProgressReporter implements ProgressReporter {
}
@Override
- public void reportChapterComplete(final User user, final String chapter, final Date date) {
- final String attributeName = "Training Complete - " + chapter;
+ public void reportChapterComplete(final User user, final Chapters chapter, final Date date) {
+ final String attributeName = "Training Complete - " + chapter.toString().toLowerCase();
final Attribute attribute = new Attribute(attributeName);
attribute.setStartDate(date);
addAttribute(user, attribute);