From 009507cba25dda81e0af30ebac57bad2d820ff6b Mon Sep 17 00:00:00 2001 From: msglm Date: Sun, 17 Aug 2025 19:54:24 -0500 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