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

Method serialize

shared/database/audio/audio_file.py:31–41  ·  view source on GitHub ↗
(self, session, connection_id = None, bucket_name = None, regen_url = True)

Source from the content-addressed store, hash-verified

29 return session.query(AudioFile).filter(AudioFile.id == id).first()
30
31 def serialize(self, session, connection_id = None, bucket_name = None, regen_url = True):
32 if regen_url:
33 from shared.url_generation import blob_regenerate_url
34 blob_regenerate_url(blob_object = self,
35 session = session,
36 connection_id = connection_id,
37 bucket_name = bucket_name)
38
39 data = self.to_dict(rules = ())
40
41 return data

Callers

nothing calls this directly

Calls 1

blob_regenerate_urlFunction · 0.90

Tested by

no test coverage detected