You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def __init__(self, message, author, time, urlList, hasImage=False):
self.attributes = [message, author, time, urlList, hasImage]
def __str__(self):
if self.attributes[4]:
if len(self.attributes[0]) == 0:
return 'Files sent by ' + self.attributes[2] + ' at ' + self.attributes[2] + '\n' + '\n'.join(self.attributes[3]) #return only images and no text
else:
return '"' + self.attributes[0] + '" sent by ' + self.attributes[1] + ' at ' + self.attributes[2] + '\n' + '\n'.join(self.attributes[3]) #return images and text
return '"' + self.attributes[0] + '" sent by ' + self.attributes[1] + ' at ' + self.attributes[2] #default return if no images