From b408f3bbb2608c46ba48a86370dc44b17e0e658b Mon Sep 17 00:00:00 2001 From: Jordan Suchow Date: Wed, 9 Mar 2016 12:36:21 -0800 Subject: [PATCH] Fix bug in webapp --- app.py | 4 +--- proselint/command_line.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 47d17dcf2..586b56650 100644 --- a/app.py +++ b/app.py @@ -27,9 +27,7 @@ def worker_function(text): id = uuid.uuid4() filename = os.path.join("tmp", "{}.md".format(id)) with io.open(filename, "w+", encoding='utf8') as f: - f.write(text) - - return command_line.lint(filename) + return command_line.lint(f) @app.errorhandler(429) diff --git a/proselint/command_line.py b/proselint/command_line.py index b5001a293..dc48c880a 100644 --- a/proselint/command_line.py +++ b/proselint/command_line.py @@ -51,7 +51,7 @@ def run_initialization(): def lint(input_file, debug=False): - """Run the linter on the file with the given path.""" + """Run the linter on the input file.""" # Load the options. options = js.load(open(os.path.join(proselint_path, '.proselintrc')))