MCPcopy Index your code
hub / github.com/diffgram/diffgram / get_previous_action

Method get_previous_action

shared/database/action/action.py:227–236  ·  view source on GitHub ↗
(self, session)

Source from the content-addressed store, hash-verified

225 return action
226
227 def get_previous_action(self, session) -> 'Action':
228 ordinal = self.ordinal
229 if ordinal == 0:
230 return None
231 action = session.query(Action).filter(
232 Action.ordinal == ordinal - 1,
233 Action.workflow_id == self.workflow_id,
234 Action.project_id == self.project_id
235 ).first()
236 return action
237
238
239 def serialize(self):

Callers 3

api_action_previousFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected