Mercurial > code > home > repos > light9
diff bin/listsongs @ 1858:7772cc48e016
reformat all python
Ignore-this: 1135b78893f8b3d31badddda7f45678f
author | drewp@bigasterisk.com |
---|---|
date | Tue, 21 May 2019 23:56:12 +0000 |
parents | 6fa4288da8a6 |
children | f066d6e874db |
line wrap: on
line diff
--- a/bin/listsongs Tue May 21 23:55:35 2019 +0000 +++ b/bin/listsongs Tue May 21 23:56:12 2019 +0000 @@ -1,5 +1,4 @@ #!bin/python - """for completion, print the available song uris on stdout in .zshrc: @@ -17,6 +16,7 @@ graph = SyncedGraph(networking.rdfdb.url, "listsongs") + @graph.initiallySynced.addCallback def printSongs(result): with graph.currentState() as current: @@ -24,4 +24,5 @@ print song reactor.stop() + reactor.run()