Compare commits
No commits in common. "e47a3c187b21083d2088aa78324d75deeb0f0994" and "3f5d2bdc264b3cc1169e5e98eda9e4276f411f65" have entirely different histories.
e47a3c187b
...
3f5d2bdc26
|
|
@ -54,9 +54,10 @@ for filename in os.listdir(folder_path):
|
||||||
with open(os.path.join(folder_path, filename), 'rb') as f:
|
with open(os.path.join(folder_path, filename), 'rb') as f:
|
||||||
video.file.save(filename, f)
|
video.file.save(filename, f)
|
||||||
|
|
||||||
#filepath = find_image_file("V"+str(id), folder_path)
|
filepath = find_image_file("V"+str(id), folder_path)
|
||||||
with open(filepath, 'rb') as f:
|
if filepath and os.path.exists(filepath):
|
||||||
video.thumbnail.save(filename, f)
|
with open(filepath, 'rb') as f:
|
||||||
|
video.thumbnail.save(filename, f)
|
||||||
|
|
||||||
# Save the Video object to the database
|
# Save the Video object to the database
|
||||||
video.save()
|
video.save()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user