From 2eb99858cc0ad58ce764f2d82bf70f9e5b14e600 Mon Sep 17 00:00:00 2001 From: msglm Date: Tue, 14 Feb 2023 23:06:13 -0600 Subject: make cache not override on start up --- src/indeedwatcher.nim | 4 ++-- 1 file 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 -- cgit v1.2.3