Skip to content

Commit

Permalink
Fixed on_retire bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmccu committed Nov 8, 2024
1 parent 439cff2 commit c542c19
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion whyis/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__='2.3.15'
__version__='2.3.17'

if __name__ == '__main__':
print(__version__)
2 changes: 1 addition & 1 deletion whyis/autonomic/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def process_instance(self, i, inputGraph):
logging.exception("Error processing resource %s in nanopub %s" % (i.identifier, inputGraph.identifier))
error = True
if not self.dry_run:
flask.current_app.nanopub_manager.publish(new_nps)
flask.current_app.nanopub_manager.publish(*new_nps)
else:
print("Not publishing",output_nanopub.identifier,", dry run.")
results = [output_nanopub]
Expand Down
2 changes: 1 addition & 1 deletion whyis/nanopub/nanopublication_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def retire(self, *nanopub_uris):
elif self.app.nanopub_depot.exists(fileid):
f = self.app.nanopub_depot.delete(fileid)
for listener in self.app.listeners['on_retire']:
listener.on_retire(np_graph)
listener.on_retire(self.get(nanopub_uri))

delete_graphs = [
self.db.value(np_uri, np.hasAssertion),
Expand Down

0 comments on commit c542c19

Please sign in to comment.