From c8efe9dd6f855be563b9118804aa303125e8c587 Mon Sep 17 00:00:00 2001 From: stepetal <21188548+stepetal@users.noreply.github.com> Date: Thu, 2 May 2024 18:37:23 +0300 Subject: [PATCH] fixes #1412 --- nbdev/cli.py | 2 +- nbs/api/13_cli.ipynb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nbdev/cli.py b/nbdev/cli.py index 98755e7a2..3dba610d8 100644 --- a/nbdev/cli.py +++ b/nbdev/cli.py @@ -88,7 +88,7 @@ def nbdev_new(**kwargs): _ORG_OR_USR = 'fastai' _REPOSITORY = 'nbdev-template' - _TEMPLATE = f'{_ORG_OR_USR}/{_TEMPLATE}' + _TEMPLATE = f'{_ORG_OR_USR}/{_REPOSITORY}' template = kwargs.get('template', _TEMPLATE) try: org_or_usr, repo = template.split('/') diff --git a/nbs/api/13_cli.ipynb b/nbs/api/13_cli.ipynb index da6b0ea55..f1446905b 100644 --- a/nbs/api/13_cli.ipynb +++ b/nbs/api/13_cli.ipynb @@ -196,7 +196,7 @@ "\n", " _ORG_OR_USR = 'fastai'\n", " _REPOSITORY = 'nbdev-template'\n", - " _TEMPLATE = f'{_ORG_OR_USR}/{_TEMPLATE}'\n", + " _TEMPLATE = f'{_ORG_OR_USR}/{_REPOSITORY}'\n", " template = kwargs.get('template', _TEMPLATE)\n", " try:\n", " org_or_usr, repo = template.split('/')\n",