From 50c6c1f4d45d088eaf9533de5fa937354a3737cc Mon Sep 17 00:00:00 2001 From: msglm Date: Wed, 15 Feb 2023 08:43:55 -0600 Subject: make sure that a url isnt in cache or hits a trigger --- src/indeedwatcher.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/indeedwatcher.nim b/src/indeedwatcher.nim index a5d1ae7..3fdb55a 100644 --- a/src/indeedwatcher.nim +++ b/src/indeedwatcher.nim @@ -110,7 +110,7 @@ for feed in feeds: #because nim has no way to both open a file in append mode #and also open it as reading. Therefore, this blunder, which #creates a new file in memory, is used instead. - if not readFile(cachefileloc).contains(URLID) or not any(titleblacklist, proc (input: string): bool = jobName.contains(input)): + if not readFile(cachefileloc).contains(URLID) and not any(titleblacklist, proc (input: string): bool = jobName.contains(input)): for attempt in countup(0,3): try: echo "Telling chromium to navigate to " & URL -- cgit v1.2.3