Skip to content

Commit

Permalink
Fix some args stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Azeirah committed Dec 24, 2024
1 parent 61db258 commit eefdf8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
10 changes: 1 addition & 9 deletions deployment/remarks-server/remarks_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
from remarks import remarks
import os, os.path

default_args = {
"combined_pdf": True,
"combined_md": True,
"md_hl_format": "whole_block",
"md_page_offset": 0,
"md_header_format": "atx",
}

app = Flask("Remarks http server")

@app.post("/process")
Expand All @@ -34,7 +26,7 @@ def process():
print(f"Making directory {out_dir}")
os.makedirs(out_dir)

result = remarks.run_remarks(in_path, out_dir, **default_args)
result = remarks.run_remarks(in_path, out_dir)

return "OK"

Expand Down
4 changes: 0 additions & 4 deletions remarks/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ def main():
help="Show this help message",
)

parser.set_defaults(
combined_pdf=True,
)

args = parser.parse_args()
args_dict = vars(args)

Expand Down

0 comments on commit eefdf8d

Please sign in to comment.