Skip to content

Commit

Permalink
removed unnecessary code and test pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans-Jörg Bibiko committed Dec 3, 2020
1 parent 9ce15e8 commit 7ab3523
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions amsd/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,8 @@ class MessageStick(CustomModelMixin, Contribution, HasFilesMixin):
data_entry = Column(Unicode)
fts = Column(TSVECTOR)

def get_x(self, model_name):
return util.get_x_data(model_name, self)

def get_images(self, image_type='thumbnail', width='50', req=None):
if not self.files or not req:
if not self.files or not req: # pragma: no cover
return ''
res = []
for k, f in self.files.items():
Expand Down

0 comments on commit 7ab3523

Please sign in to comment.