Skip to content

Commit

Permalink
Merge pull request #1375 from ProblemSolversGuild/fix_function_call
Browse files Browse the repository at this point in the history
add parenthesis to serve.proc_nbs
  • Loading branch information
jph00 authored Oct 22, 2023
2 parents e117041 + a00df7a commit 2cd15a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nbdev/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def proc_nbs(
chk_mtime = max(cfg.config_file.stat().st_mtime, Path(__file__).stat().st_mtime)
cache.mkdir(parents=True, exist_ok=True)
cache_mtime = cache.stat().st_mtime
if force or (cache.exists and cache_mtime<chk_mtime): rmtree(cache)
if force or (cache.exists() and cache_mtime<chk_mtime): rmtree(cache)

files = files.map(_proc_file, mtime=cache_mtime, cache=cache, path=path).filter()
kw = {} if IN_NOTEBOOK else {'method':'spawn'}
Expand Down
2 changes: 1 addition & 1 deletion nbs/api/17_serve.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
" chk_mtime = max(cfg.config_file.stat().st_mtime, Path(__file__).stat().st_mtime)\n",
" cache.mkdir(parents=True, exist_ok=True)\n",
" cache_mtime = cache.stat().st_mtime\n",
" if force or (cache.exists and cache_mtime<chk_mtime): rmtree(cache)\n",
" if force or (cache.exists() and cache_mtime<chk_mtime): rmtree(cache)\n",
"\n",
" files = files.map(_proc_file, mtime=cache_mtime, cache=cache, path=path).filter()\n",
" kw = {} if IN_NOTEBOOK else {'method':'spawn'}\n",
Expand Down

0 comments on commit 2cd15a8

Please sign in to comment.