Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automated Git add/commit/push
#1
Hey!

I have a personal ERP I wrote for my small business in python/flask and I was wondering if it would be wise, (security-wise) to automatically push changes that my sqlite.db file have in my python code?

something like so:
@app.route("/create/inventory", methods=["POST"])
def create_inventory():
    # Get form stuff and commit to db
    os.system("git add ./sqlite.db")
    os.system("git commit -m "change db {}".format(datetime.datetime())
    os.system("git push")
Reply


Messages In This Thread
Automated Git add/commit/push - by rxndy - May-13-2019, 11:51 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Push Button on website cg1980 1 408 Feb-07-2024, 01:25 AM
Last Post: snippsat
  How do I get rid of "Chrome is being controlled by automated test software"? jetBlack 2 12,801 Jul-21-2022, 08:31 AM
Last Post: Benjamin112
  I want to create an automated website in python mkdhrub1 2 2,402 Dec-27-2021, 11:27 PM
Last Post: Larz60+
  Automated Emailer (Using Selenium) StoopidChicken 0 2,974 Jul-17-2018, 07:20 AM
Last Post: StoopidChicken
  data push from logger to server asdfasdf 2 3,663 May-02-2017, 11:32 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020