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

Method try_to_commit

walrus/methods/input/process_media.py:1047–1063  ·  view source on GitHub ↗

We don't commit the frame type because we are just using the object to store the same concepts and data, but otherwise do NOT want to persist it. TODO thoughts about making this concept more generic, and/or part of some logging thing...

(self)

Source from the content-addressed store, hash-verified

1045 return True
1046
1047 def try_to_commit(self):
1048 """
1049 We don't commit the frame type because we are
1050 just using the object to store the same concepts
1051 and data, but otherwise do NOT want to persist it.
1052 TODO thoughts about making this concept more generic,
1053 and/or part of some logging thing...
1054 """
1055
1056 if self.input and self.input.media_type == "frame":
1057 return
1058
1059 try:
1060 self.session.commit()
1061 except:
1062 self.session.rollback()
1063 raise
1064
1065 def read_raw_file(self):
1066 # Get Raw file

Callers 10

main_entryMethod · 0.95
__copy_videoMethod · 0.95
process_one_text_fileMethod · 0.95
process_csv_fileMethod · 0.95

Calls 1

commitMethod · 0.80

Tested by

no test coverage detected