diff --git a/default.nix b/default.nix index ffef2f2..ca54e49 100644 --- a/default.nix +++ b/default.nix @@ -47,6 +47,7 @@ pkgs.mkShell { pkgs.libgcc.lib pkgs.poppler_utils.out pkgs.inotify-tools.out + pkgs.inkscape ]; shellHook = builtins.readFile "${shellHookChecked}/shellhook.sh"; diff --git a/deployment/remarks-server/remarks-server.Dockerfile b/deployment/remarks-server/remarks-server.Dockerfile index 209b16d..91c96c4 100644 --- a/deployment/remarks-server/remarks-server.Dockerfile +++ b/deployment/remarks-server/remarks-server.Dockerfile @@ -1,6 +1,6 @@ FROM laauurraaa/remarks-bin:latest -COPY server.py /app/server.py +COPY remarks_server/server.py /app/server.py RUN ["/root/.local/bin/poetry", "run", "pip", "install", "flask"] ENTRYPOINT ["/root/.local/bin/poetry", "run", "python", "/app/server.py"] diff --git a/remarks/Document.py b/remarks/Document.py index 04d8aa0..f6fabc6 100644 --- a/remarks/Document.py +++ b/remarks/Document.py @@ -84,8 +84,6 @@ def pages_magnitude(self): return math.floor(math.log10(len(self.pages_list))) + 1 def pages(self): - has_annotation_highlights = False - page_uuids = set( [f.stem for f in self.rm_annotation_files] + [f.stem for f in self.rm_highlight_files]