From 86e1bc18d9a94f6a4ff4dc7233baf28682ebf771 Mon Sep 17 00:00:00 2001 From: prjemian Date: Thu, 20 Dec 2018 13:20:18 -0600 Subject: [PATCH] #62 use snapshot's exact uuid --- ideas/issue_62/snapshot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ideas/issue_62/snapshot.py b/ideas/issue_62/snapshot.py index b3c1143e7..542ed7df6 100755 --- a/ideas/issue_62/snapshot.py +++ b/ideas/issue_62/snapshot.py @@ -42,15 +42,15 @@ def snapshot_cli(): db = Broker.named("mongodb_config") RE.subscribe(db.insert) - RE( + uuid_list = RE( APS_plans.snapshot( obj_dict.values(), md=dict(purpose="python code development and testing"))) - h = db[-1] + snap = list(db(uuid_list[0]))[0] #print(h.start) #print(h.table()) - APS_callbacks.SnapshotReport().print_report(h) + APS_callbacks.SnapshotReport().print_report(snap) if __name__ == "__main__":