2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 06:47:27 +00:00

Path seems newly fragile re int rather than str

This commit is contained in:
2023-09-02 19:43:50 +03:00
parent a4f676fd32
commit eb7a1efea5
2 changed files with 11 additions and 12 deletions

View File

@@ -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
)