From fff194c0243cf9d5b7065bd7861aeb50163f3c96 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Tue, 1 Jun 2021 12:51:38 +0200 Subject: [PATCH] print logbooks; added note on making url configurable --- example_scilog.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/example_scilog.py b/example_scilog.py index 74f093b..daf0b58 100755 --- a/example_scilog.py +++ b/example_scilog.py @@ -20,11 +20,13 @@ from scilog import Basesnippet, Paragraph tmp = Basesnippet() tmp.id = "2" -# url = "https://lnode2.psi.ch/api/v1" -url = "http://[::1]:3000/" +#TODO make this selectable +url = "https://lnode2.psi.ch/api/v1" +#url = "http://[::1]:3000/" log = SciLog(url) #print(log.token) logbooks = log.get_logbooks(ownerGroup=pgroup) +print(logbooks) assert len(logbooks) == 1 logbook = logbooks[0]