Reformat all code with black formatter.

This commit is contained in:
dongar committed 2023-05-23 12:06:13 -05:00
1 parent 497c48f853
commit 7cf685b507
4 files changed
+67 -39

No files matched your search

+7 -6
View File
@@ -7,8 +7,9 @@ import wordle
app = Flask(__name__)
def parse_guess(guess):
return 'foody', 'CICMI'
return "foody", "CICMI"
@app.route("/")
@@ -19,7 +20,6 @@ def parse_guess(guess):
@app.route("/<g1>/<g2>/<g3>/<g4>/<g5>")
@app.route("/<g1>/<g2>/<g3>/<g4>/<g5>/<g6>")
def solver(g1=None, g2=None, g3=None, g4=None, g5=None, g6=None):
constraints = wordle.Constraints()
guesses = []
@@ -31,7 +31,7 @@ def solver(g1=None, g2=None, g3=None, g4=None, g5=None, g6=None):
if parsed_guess:
guesses.append(parsed_guess)
if parsed_result:
if parsed_result:
results.append(parsed_result)
if parsed_guess and parsed_result:
@@ -63,7 +63,8 @@ def dictionary(page=0):
start_word = page * PAGE_SIZE
end_word = start_word + PAGE_SIZE
words = words[start_word: end_word]
words = words[start_word:end_word]
return render_template("dictionary.html",
page=page, max_pages=max_pages, words=words)
return render_template(
"dictionary.html", page=page, max_pages=max_pages, words=words
)