Adds timestamp to card data in the database
This commit is contained in:
@@ -68,7 +68,8 @@ public class Database {
|
||||
.append("surface_position", s_p)
|
||||
.append("surface_load", s_l)
|
||||
.append("downhole_position", d_p)
|
||||
.append("downhole_load", d_l);
|
||||
.append("downhole_load", d_l)
|
||||
.append("timestamp", ZonedDateTime.now().toString());
|
||||
collection.insertOne(doc);
|
||||
System.out.println("Stored stroke number " + inpCard.getStrokeNumber() + " as " + doc.getObjectId("_id"));
|
||||
return collection.count();
|
||||
|
||||
Reference in New Issue
Block a user