def __init__(self, submission):
        """Initialize an instance of MiniSubmission."""
        for attribute in self.__slots__:
            if attribute == 'author':
                continue
            setattr(self, attribute, getattr(submission, attribute))
        self.author = str(submission.author) if submission.author else None
def __init__ ( self , submission ) : for attribute in self . __slots__ : if attribute == 'author' : continue setattr ( self , attribute , getattr ( submission , attribute ) ) self . author = str ( submission . author ) if submission . author else None
Initialize an instance of MiniSubmission.