(self)
| 71 | } |
| 72 | |
| 73 | def serialize_for_list_view(self): |
| 74 | return { |
| 75 | 'id': self.id, |
| 76 | 'name': self.name, |
| 77 | 'description_markdown': self.description_markdown, |
| 78 | # For now include markdown because we want to be able to edit |
| 79 | # and it doesn't realy seem heavy enough to justify a seperate call yet |
| 80 | 'time_updated': self.time_updated |
| 81 | |
| 82 | } |
| 83 | |
| 84 | def get_by_id(session, guide_id): |
| 85 | if guide_id is None: |
no outgoing calls
no test coverage detected