summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index 83dafa1..1acee15 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -312,8 +312,9 @@ def editexpopage(request, path):
git = settings.GIT
try:
with open(filepath, "w") as f:
+ os.chmod(filepath, 0o664) # set file permissions to rw-rw-r--
f.write(result)
- #print(f'WROTE {cwd}---{filename} ')
+ print(f'WRITING{cwd}---{filename} ')
subprocess.call([git, "add", filename], cwd=cwd)
subprocess.call([git, "commit", "-m", 'Edit this page'], cwd=cwd)
except PermissionError: