Skip to content

Commit

Permalink
rename github update config
Browse files Browse the repository at this point in the history
  • Loading branch information
Light-Beacon committed Nov 12, 2024
1 parent 4400999 commit e983746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/homepagebuilder/server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ def get_flask_app(self):
@app.route("/pull",methods=['POST'])
def git_update():
'''收到 github 更新信号更新工程文件'''
if not config('Process.Update.Github',False):
if not config('Server.Update.GitHub.Webhook.Enable',False):
return 'pull not enabled',400
status,data = request_update(request,projapi.project_dir,
config('server.update.github.webhook.secret'))
config('Server.Update.GitHub.Webhook.Secret'))
if status == 200:
projapi.reload_project()
else:
Expand Down

0 comments on commit e983746

Please sign in to comment.