added requirements.txt
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 24s

This commit is contained in:
2025-07-17 11:23:09 +02:00
parent 9c85ee9f2f
commit 5d9a306c64
2 changed files with 13 additions and 0 deletions

10
edit.py
View File

@@ -10,6 +10,14 @@ COMMIT_MESSAGE = 'news update'
HTML_INSERT_TAG = "<!-- INSERT HERE -->"
uploaded_image_path = None # Global to track uploaded image
def git_pull():
try:
repo = Repo(PATH_OF_GIT_REPO)
origin = repo.remotes.origin
origin.pull()
except:
messagebox.showerror("Git error", "Something went wrong while pulling from origin")
def git_push():
try:
repo = Repo(PATH_OF_GIT_REPO)
@@ -137,5 +145,7 @@ img_lib_text.pack(padx=10, pady=5)
submit_button = tk.Button(root, text="Submit to HTML", command=submit_content)
submit_button.pack(pady=5)
git_pull()
root.mainloop()

3
requirements.txt Normal file
View File

@@ -0,0 +1,3 @@
tk
GitPython
shutils