summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-02-15 08:43:55 -0600
committermsglm <msglm@techchud.xyz>2023-02-15 08:43:55 -0600
commit50c6c1f4d45d088eaf9533de5fa937354a3737cc (patch)
treee4ddc106743dfc5722be55b31bd5f82d5d43d6a8 /src
parent8e1af3d9f1a86e87baa7e2b2654aba794d9af07a (diff)
downloadindeedwatcher-50c6c1f4d45d088eaf9533de5fa937354a3737cc.tar.gz
indeedwatcher-50c6c1f4d45d088eaf9533de5fa937354a3737cc.tar.bz2
indeedwatcher-50c6c1f4d45d088eaf9533de5fa937354a3737cc.zip
make sure that a url isnt in cache or hits a trigger
Diffstat (limited to 'src')
-rw-r--r--src/indeedwatcher.nim2
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