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 -->"
|
HTML_INSERT_TAG = "<!-- INSERT HERE -->"
|
||||||
uploaded_image_path = None # Global to track uploaded image
|
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():
|
def git_push():
|
||||||
try:
|
try:
|
||||||
repo = Repo(PATH_OF_GIT_REPO)
|
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 = tk.Button(root, text="Submit to HTML", command=submit_content)
|
||||||
submit_button.pack(pady=5)
|
submit_button.pack(pady=5)
|
||||||
|
|
||||||
|
git_pull()
|
||||||
|
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
|
|
||||||
|
|||||||
3
requirements.txt
Normal file
3
requirements.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
tk
|
||||||
|
GitPython
|
||||||
|
shutils
|
||||||
Reference in New Issue
Block a user