Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_contribution(self, cid):
"""Convenience function to get full contribution entry and display as HTML table"""
fields = list(
self.swagger_spec.definitions.get("ContributionsSchema")._properties.keys()
) # don't return dynamic fields (card_*)
return Dict(self.contributions.get_entry(pk=cid, _fields=fields).result())
def get_project(self, project):
"""Convenience function to get full project entry and display as HTML table"""
return Dict(self.projects.get_entry(pk=project, _fields=["_all"]).result())