Skip to content

Commit a7b6a9b

Browse files
committed
[#3934] Caddisfly replace to Use value instead valueText
1 parent f5e9607 commit a7b6a9b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/data/src/org/akvo/gae/remoteapi/ReplaceCaddisflyImage.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,10 @@ private void replaceCaddisflyImage(DatastoreService ds, String questionId, Integ
9393
final Query q = new Query("QuestionAnswerStore").setFilter(combined);
9494
final PreparedQuery pq = ds.prepare(q);
9595
for (Entity e : pq.asList(FetchOptions.Builder.withDefaults())) {
96-
Text valueText = (Text) e.getProperty("valueText");
97-
Object value = valueText.getValue();
96+
String value = (String) e.getProperty("value");
9897
System.out.println(String.format("INSTANCE ID: %s", surveyInstanceId));
9998
String replacedValue = replaceImage(value.toString(), newImage);
100-
e.setProperty("valueText", new Text(replacedValue));
99+
e.setProperty("value", replacedValue);
101100
ds.put(e);
102101
}
103102
}

0 commit comments

Comments
 (0)