Skip to content

Commit

Permalink
Remove logging and print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Dallas Fraser committed Jun 28, 2020
1 parent 0cf7b69 commit a9299af
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions app/templates/submit_sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ <h5>Icon explanations</h5>
dataType: "json",
async: true,
success: function(match) {
console.log(match);
startApp(match);
}, error: function(request, error) {
console.error(request);
Expand Down Expand Up @@ -457,7 +456,6 @@ <h5>Icon explanations</h5>
submitSheet: function() {
const self = this;
this.saving_sheet = true;
console.log(self.active_sheet.match_id);
$.ajax({
type: "POST",
data: JSON.stringify(self.active_sheet),
Expand Down
3 changes: 0 additions & 3 deletions app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,7 @@ def submit_sheet(match_id: int):
def save_sheet():
try:
sheet = request.get_json(silent=True)
print(sheet)
print(request.json)
saved_sheet = Sheet.from_json(sheet)
print(saved_sheet)
DB.session.add(saved_sheet)
DB.session.commit()
return Response(json.dumps(saved_sheet.json()),
Expand Down

0 comments on commit a9299af

Please sign in to comment.