From 91ca8e12a4b612fdfb4b6f080ac928267b2bb34c Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Sat, 28 Oct 2023 22:02:55 +0100 Subject: [PATCH] adjsuted pw gen --- pw_generaturr/src/pw_generaturr.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pw_generaturr/src/pw_generaturr.nim b/pw_generaturr/src/pw_generaturr.nim index 50c3047..82e2cc8 100644 --- a/pw_generaturr/src/pw_generaturr.nim +++ b/pw_generaturr/src/pw_generaturr.nim @@ -30,7 +30,9 @@ proc parsePw(body: string) = proc getPW() = var c = newHttpClient() try: - let resp = c.get("https://random-word-api.herokuapp.com/word?number=" & $number & "&length=" & $word_len) + let url = "https://random-word-api.herokuapp.com/word?number=" & $number & "&length=" & $word_len + echo url + let resp = c.get(url) if resp.status == $Http200: parsePw(resp.body)