Skip to content

Commit 28bede1

Browse files
committed
slimmed docker image, fixed some LGTM alerts
1 parent 8c90883 commit 28bede1

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/FlaskRTBCTF/main/forms.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ def setup(self):
5252
flash("Form validation failed. Please try again.", "danger")
5353
step = 2
5454

55-
return redirect(url_for("main.setup"), step=step)
56-
# lgtm [py/call/wrong-named-argument]
55+
return redirect(url_for("main.setup", step=step))
5756

5857

5958
class WebsiteForm(FlaskForm):
@@ -93,5 +92,4 @@ def setup(self):
9392
else:
9493
flash("Error: Couldn't save form data.", "danger")
9594

96-
return redirect(url_for("main.setup"), step=3)
97-
# lgtm [py/call/wrong-named-argument]
95+
return redirect(url_for("main.setup", step=3))

src/populate_db_for_testing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,8 +1119,8 @@ def populate_machines():
11191119

11201120
with app.app_context():
11211121

1122-
# populate_users()
1122+
populate_users()
11231123

11241124
populate_challs()
11251125

1126-
# populate_machines()
1126+
populate_machines()

0 commit comments

Comments
 (0)