added requirements.txt
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 24s
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 24s
This commit is contained in:
10
edit.py
10
edit.py
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user