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

Function is_export_completed

shared/export/export_utils.py:58–67  ·  view source on GitHub ↗
(export)

Source from the content-addressed store, hash-verified

56
57
58def is_export_completed(export):
59 log = regular_log.default()
60 # Context of exposing this in SDK, and
61 # it failing if the export is not ready
62 # note it's "complete" and not "success"
63 if export.status != "complete":
64 log['error']['export'] = "Export not ready yet."
65 log['export'] = export.serialize()
66 return log
67 return log
68
69
70def check_export_permissions_and_status(export, project_string_id, session):

Callers 1

Calls 1

serializeMethod · 0.45

Tested by

no test coverage detected