summaryrefslogtreecommitdiffstats
path: root/src/indeedwatcher.nim
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-02-14 23:06:13 -0600
committermsglm <msglm@techchud.xyz>2023-02-14 23:06:18 -0600
commit2eb99858cc0ad58ce764f2d82bf70f9e5b14e600 (patch)
treed69f3991d350aebe24e25a4619a2a9caf7e56ee0 /src/indeedwatcher.nim
parentda7c870b947cc147e73937f7add62a73a26eae4f (diff)
downloadindeedwatcher-2eb99858cc0ad58ce764f2d82bf70f9e5b14e600.tar.gz
indeedwatcher-2eb99858cc0ad58ce764f2d82bf70f9e5b14e600.tar.bz2
indeedwatcher-2eb99858cc0ad58ce764f2d82bf70f9e5b14e600.zip
make cache not override on start up
Diffstat (limited to 'src/indeedwatcher.nim')
-rw-r--r--src/indeedwatcher.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/indeedwatcher.nim b/src/indeedwatcher.nim
index 347e419..7bdad49 100644
--- a/src/indeedwatcher.nim
+++ b/src/indeedwatcher.nim
@@ -25,7 +25,7 @@ if not fileExists(getConfigDir() & "/indeedwatcher/config.toml"):
"""
writeFile(getConfigDir() & "/indeedwatcher/config.toml", defaultConfig)
-if not fileExists(getCacheDir() & "/indeedwatcher/config.toml"):
+if not fileExists(getCacheDir() & "/indeedwatcher/listings.cache"):
createDir(getCacheDir() & "/indeedwatcher/")
writeFile(getCacheDir() & "/indeedwatcher/listings.cache", "")
@@ -87,7 +87,7 @@ for feed in feeds:
for entry in rssFeedReply.items:
#Sleep so indeed.com doesn't freak out
- if counter > 7:
+ if counter > 4:
echo "resting for 7 seconds ..."
sleep 7000
counter = 0