Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
fix default value
Browse files Browse the repository at this point in the history
  • Loading branch information
ms32035 committed Aug 15, 2019
1 parent fa31f83 commit 4fc2db9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
__pycache__/
.idea/
*.iml
3 changes: 1 addition & 2 deletions deploy-plugin/deploy_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def list(self):

form = GitBranchForm()
form.git_branches.choices = [(brn, brn) for brn in remote_branches]
form.git_branches.default = "origin/master"

return self.render_template("deploy.html", title=title, form=form, data=data)

Expand Down Expand Up @@ -94,4 +93,4 @@ class AirflowDeploymentPlugin(AirflowPlugin):


class GitBranchForm(FlaskForm):
git_branches = SelectField("Git branch")
git_branches = SelectField("Git branch", default="origin/master")

0 comments on commit 4fc2db9

Please sign in to comment.