Skip to content

Commit

Permalink
Fix regression due to ValueError in file uploading mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
deldesir authored Jul 5, 2024
1 parent a1df298 commit 623451a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cps/editbooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ def move_mediafile(requested_file, current_user_name=None, shelf_id=None):
db_book,
input_authors,
title_dir,
renamed_authors,
) = create_book_on_upload(modify_date, meta)

# Comments need book id therefore only possible after flush
Expand All @@ -406,7 +405,6 @@ def move_mediafile(requested_file, current_user_name=None, shelf_id=None):
input_authors[0],
meta.file_path,
title_dir + meta.extension.lower(),
renamed_author=renamed_authors,
)

move_coverfile(meta, db_book)
Expand Down

0 comments on commit 623451a

Please sign in to comment.