Bottom Page

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")
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Python-selenium script for automated web-login does not work hectorKJ 2 749 Sep-10-2019, 01:29 PM
Last Post: buran
  Automated Emailer (Using Selenium) StoopidChicken 0 1,144 Jul-17-2018, 07:20 AM
Last Post: StoopidChicken
  data push from logger to server asdfasdf 2 1,521 May-02-2017, 11:32 AM
Last Post: snippsat

Forum Jump:


Users browsing this thread: 1 Guest(s)