Skip to content

Commit

Permalink
2.1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
noembryo committed Aug 27, 2024
1 parent 4806101 commit 7be3f11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 47 deletions.
4 changes: 2 additions & 2 deletions gui_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Form implementation generated from reading ui file 'D:\Apps\DEV\PROJECTS\KoHighlights\gui_main.ui',
# licensing of 'D:\Apps\DEV\PROJECTS\KoHighlights\gui_main.ui' applies.
#
# Created: Mon Aug 26 13:41:15 2024
# Created: Tue Aug 27 20:07:56 2024
# by: pyside2-uic running on PySide2 5.13.2
#
# WARNING! All changes made in this file will be lost!
Expand Down Expand Up @@ -339,5 +339,5 @@ def retranslateUi(self, Base):
self.act_view_book.setText(QtWidgets.QApplication.translate("Base", "View Book", None, -1))
self.act_view_book.setShortcut(QtWidgets.QApplication.translate("Base", "Ctrl+B", None, -1))

from secondary import XTableWidget, DropTableWidget
from secondary import DropTableWidget, XTableWidget
import images_rc
44 changes: 0 additions & 44 deletions images.qrc

This file was deleted.

8 changes: 7 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@


__author__ = "noEmbryo"
__version__ = "2.1.0.0"
__version__ = "2.1.1.0"


class Base(QMainWindow, Ui_Base):
Expand Down Expand Up @@ -1667,6 +1667,12 @@ def save_book_data(self, path, data):
:type data: dict
:param data: The book's data
"""
if data.get("annotations") is not None: # new metadata format
for annot in data["annotations"].values():
note = annot.get("note")
if note is not None and not note:
del annot["note"] # delete key if empty

times = os.stat(path) # read the file's created/modified times
encode_data(path, data)
if data.get("summary", {}).get("status", "") in ["abandoned", "complete"]:
Expand Down

0 comments on commit 7be3f11

Please sign in to comment.