(self, session, connection_id = None, bucket_name = None, regen_url = True)
| 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 |
nothing calls this directly
no test coverage detected