mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-12-05 20:12:30 -05:00
improvements on flake8 (#200)
This commit is contained in:
@@ -537,7 +537,7 @@ class Media(models.Model):
|
||||
"-y",
|
||||
tf,
|
||||
]
|
||||
ret = helpers.run_command(command)
|
||||
helpers.run_command(command)
|
||||
|
||||
if os.path.exists(tf) and helpers.get_file_type(tf) == "image":
|
||||
with open(tf, "rb") as f:
|
||||
@@ -657,7 +657,6 @@ class Media(models.Model):
|
||||
"""Property used on serializers"""
|
||||
|
||||
ret = {}
|
||||
chunks_ret = {}
|
||||
|
||||
if self.media_type not in ["video"]:
|
||||
return ret
|
||||
|
||||
Reference in New Issue
Block a user