Skip to content

Commit

Permalink
Fix issue #369 - Use the 12th column as UUID
Browse files Browse the repository at this point in the history
* The 12th column in data.txt holds the uuid of the SurveyInstance
  When we introduced a new column 13th (duration) that formula,
  length - 1 got invalidated
  • Loading branch information
iperdomo committed Sep 30, 2013
1 parent 5403966 commit d67ec14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public SurveyInstance save(Date collectionDate, DeviceFiles deviceFile,
}
si.setSurveyId(Long.parseLong(parts[0].trim()));
if (parts.length >= 12) {
String uuid = parts[parts.length - 1];
String uuid = parts[11];
if (uuid != null && uuid.trim().length() > 0) {
SurveyInstance existingSi = findByUUID(uuid);
if (existingSi != null) {
Expand Down

0 comments on commit d67ec14

Please sign in to comment.