How to use the sma.archiver.Comment function in sma

To help you get started, we’ve selected a few sma examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sdockray / sma / sma / archiver.py View on Github external
def ingest_comments(self):
		if 'comments' in self.obj and 'data' in self.obj['comments']:
			for c in self.obj['comments']['data']:
				comment = Comment(c)
				if not comment.user.id in self.users:
					self.users[comment.user.id] = comment.user
				self.comments.append(comment)
				self.extract_links(comment.message)