summaryrefslogtreecommitdiffstats
path: root/core/views
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-09-02 19:43:50 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-09-02 19:43:50 +0300
commiteb7a1efea51dc68a4cb3c2d4da37127ba28a7991 (patch)
tree26fbaa8af294523477b6ab44eb7aadd274e4b543 /core/views
parenta4f676fd320ab8bc22ac3233018b88dfa3238855 (diff)
downloadtroggle-eb7a1efea51dc68a4cb3c2d4da37127ba28a7991.tar.gz
troggle-eb7a1efea51dc68a4cb3c2d4da37127ba28a7991.tar.bz2
troggle-eb7a1efea51dc68a4cb3c2d4da37127ba28a7991.zip
Path seems newly fragile re int rather than str
Diffstat (limited to 'core/views')
-rw-r--r--core/views/uploads.py2
1 files changed, 1 insertions, 1 deletions
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
)