diff options
author | msglm <msglm@techchud.xyz> | 2025-08-17 19:54:24 -0500 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2025-08-17 19:54:24 -0500 |
commit | 009507cba25dda81e0af30ebac57bad2d820ff6b (patch) | |
tree | e4ddc106743dfc5722be55b31bd5f82d5d43d6a8 | |
parent | fedca001058360107df7b7b529ffd2eb58b4f435 (diff) | |
download | indeed-watcher-009507cba25dda81e0af30ebac57bad2d820ff6b.tar.gz indeed-watcher-009507cba25dda81e0af30ebac57bad2d820ff6b.tar.bz2 indeed-watcher-009507cba25dda81e0af30ebac57bad2d820ff6b.zip |
make sure that a url isnt in cache or hits a trigger
-rw-r--r-- | src/indeedwatcher.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |