Skip to content

Commit

Permalink
Fix stupid errors I should have caught before the last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
philgyford committed Apr 8, 2024
1 parent 765b543 commit e815898
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ditto/flickr/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ class Meta:
ordering = ("-post_time",)

def __str__(self):
return super().__str_(self)
return super().__str__()

def save(self, *args, **kwargs):
if self.taken_time:
Expand Down
2 changes: 1 addition & 1 deletion ditto/flickr/templatetags/ditto_flickr.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def photo_license(n):
if n in licenses:
if n in Photo.LICENSE_URLS and Photo.LICENSE_URLS[n] != "":
return format_html(
f'<a href="{Photo.LICENSE_URLs[n]}" title="More about permissions">'
f'<a href="{Photo.LICENSE_URLS[n]}" title="More about permissions">'
f"{licenses[n]}</a>"
)
else:
Expand Down
4 changes: 2 additions & 2 deletions tests/twitter/test_fetch_fetchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ def test_saves_downloaded_image_file(self, download):
self.image.image_file.name,
(
f"twitter/media/{temp_filepath[-4:-2]}/{temp_filepath[-2:]}/"
f"{os.path.basename(temp_filepath)}",
f"{os.path.basename(temp_filepath)}"
),
)

Expand All @@ -995,6 +995,6 @@ def test_saves_downloaded_mp4_file(self, download):
self.animated_gif.mp4_file.name,
(
f"twitter/media/{temp_filepath[-4:-2]}/{temp_filepath[-2:]}/"
f"{os.path.basename(temp_filepath)}",
f"{os.path.basename(temp_filepath)}"
),
)

0 comments on commit e815898

Please sign in to comment.