We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ea955f commit d3020e4Copy full SHA for d3020e4
openlibrary/plugins/upstream/addbook.py
@@ -902,21 +902,11 @@ def POST(self, key):
902
else:
903
work = None
904
905
- add = (
906
- edition.revision == 1
907
- and work
908
- and work.revision == 1
909
- and work.edition_count == 1
910
- )
911
-
912
try:
913
helper = SaveBookHelper(work, edition)
914
helper.save(web.input())
915
916
- if add:
917
- add_flash_message("info", utils.get_message("flash_catalog_updated"))
918
- else:
919
+ add_flash_message("info", utils.get_message("flash_catalog_updated"))
920
921
if i.work_key and i.work_key.startswith('/works/'):
922
url = i.work_key
0 commit comments