From eb7a1efea51dc68a4cb3c2d4da37127ba28a7991 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 2 Sep 2023 19:43:50 +0300 Subject: Path seems newly fragile re int rather than str --- core/views/uploads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/views/uploads.py') diff --git a/core/views/uploads.py b/core/views/uploads.py index 0031f24..d1d4402 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -228,7 +228,7 @@ def logbookedit(request, year=None, slug=None): #TO DO author and team validation, and check that 'place' is not deleted and that *bloke not forgotten git = settings.GIT - dirpath = Path(settings.EXPOWEB) / "years" / year + dirpath = Path(settings.EXPOWEB) / "years" / str(year) lbe_add = subprocess.run( [git, "add", filename], cwd=dirpath, capture_output=True, text=True ) -- cgit v1.2.3