Skip to content

Commit

Permalink
Fix local var
Browse files Browse the repository at this point in the history
  • Loading branch information
timgates42 committed Aug 4, 2021
1 parent 50dca5a commit 7fc480a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/meticulous/_sources.py
Expand Up @@ -55,11 +55,11 @@ def check_url(url):
now = datetime.datetime.now()
results = None
dkey = f"github_links_datetxt|{url}"
key = f"github_links|{url}"
datetxt = get_value(dkey)
if datetxt is not None:
dobj = datetime.strptime(datetxt, TIME_FMT)
if dobj + datetime.timedelta(days=CACHE_TIME_DAYS) > now:
key = f"github_links|{url}"
results = get_value(key)
if results is None:
results = "\n".join(get_all_markdown_github_links(url))
Expand Down

0 comments on commit 7fc480a

Please sign in to comment.