Skip to content

82 midify detail view#178

Open
bizmarcin wants to merge 34 commits intomasterfrom
82_midify_detail_view
Open

82 midify detail view#178
bizmarcin wants to merge 34 commits intomasterfrom
82_midify_detail_view

Conversation

@bizmarcin
Copy link
Copy Markdown
Collaborator

Raz jeszcze #82. Nowy branch, nowy PR. Na podstawie #81. Można sprawdzać

# Conflicts:
#	zeton/data_access/points.py
# Conflicts:
#	sql/01_db_init.sql
#	sql/02_insert_user_data.sql
#	tests/basic_data.sql
#	zeton/api/points.py
#	zeton/data_access/points.py
@bizmarcin bizmarcin self-assigned this Nov 25, 2019
@bizmarcin
Copy link
Copy Markdown
Collaborator Author

bizmarcin commented Nov 27, 2019

@zakonfeniksa zauważyłem że lubujesz się w ctrl+c, ctrl+v ale jakiś 1 linijkowy opis kiedy CI ten błąd wyskoczył też by się przydał.

@zakonfeniksa
Copy link
Copy Markdown
Collaborator

Sorry zapomniałem przebudować bazę :)

@zakonfeniksa zakonfeniksa self-requested a review November 27, 2019 20:14
Copy link
Copy Markdown
Owner

@tgbdc7 tgbdc7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.jak jesteśmy zalogowani jako dziecko, nie możemy dodać punktów, ani wykorzystać. Coś działą nie poprawnie,
2 wykorzystać request.referrer

return True

@bp.route("/child/<child_id>/points/add/<points>/<exercise_id>", methods=['POST'])
@bp.route("/child/<child_id>/points/add/<points>/<exercise_id>/<is_detail>", methods=['POST'])
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

proponuję bez is_detail - można wykorzystać request.referrer

Comment on lines +50 to +53
if is_detail == "0":
return redirect(url_for('views.child', child_id=child_id))
else:
return redirect(url_for('views.task_detail', child_id=child_id))
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

proponuję return redirect(request.referrer)
uprości i kod będzie bardziej czytelny .

@visse0001
Copy link
Copy Markdown
Collaborator

1.jak jesteśmy zalogowani jako dziecko, nie możemy dodać punktów, ani wykorzystać. Coś działą nie poprawnie,
2 wykorzystać request.referrer

Popieram.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants