diff --git a/bin/listsongs b/bin/listsongs --- a/bin/listsongs +++ b/bin/listsongs @@ -1,5 +1,4 @@ #!bin/python - """for completion, print the available song uris on stdout in .zshrc: @@ -17,6 +16,7 @@ from rdfdb.syncedgraph import SyncedGrap graph = SyncedGraph(networking.rdfdb.url, "listsongs") + @graph.initiallySynced.addCallback def printSongs(result): with graph.currentState() as current: @@ -24,4 +24,5 @@ def printSongs(result): print song reactor.stop() + reactor.run()