This commit is contained in:
Ozzieisaacs 2018-11-17 16:51:30 +01:00
parent c574b779fb
commit 2422f782de

View File

@ -591,7 +591,7 @@ def modify_database_object(input_elements, db_book_object, db_object, db_session
if db_type == 'custom' and db_element.value != add_element: if db_type == 'custom' and db_element.value != add_element:
new_element.value = add_element new_element.value = add_element
# new_element = db_element # new_element = db_element
elif db_type == 'language' and db_element.lang_code != add_element: elif db_type == 'languages' and db_element.lang_code != add_element:
db_element.lang_code = add_element db_element.lang_code = add_element
# new_element = db_element # new_element = db_element
elif db_type == 'series' and db_element.name != add_element: elif db_type == 'series' and db_element.name != add_element: