-
Notifications
You must be signed in to change notification settings - Fork 0
[Interactive fiction] Minor bug fixes #1581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
src/chigame/games/urls.py
Outdated
| path("lobby/<int:pk>/code/", views.MatchCodeView.as_view(), name="match-code"), | ||
| # interactive fiction | ||
| path("interactive-fiction/", views.IFGameCreateView.as_view(), name="interactive-fiction-create"), | ||
| path('upload/<int:pk>/', views.UploadFileView.as_view(), name='upload-file'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
URL path was removed at some point...
| const author = document.getElementById('id_author').value.trim(); | ||
| const desc = document.getElementById('id_description').value.trim(); | ||
| const gameFile = document.getElementById('id_game_file'); | ||
| const gameFile = document.getElementById('myFile'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few variable names in the modal logic were repeated which caused bugs.
| </div> | ||
| </div> | ||
| </h3> | ||
| </form> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Main problem: Image submission created two forms in the file, which caused no data to passed when POST request was made.
smagdalen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| path("lobby/<int:pk>/code/", views.MatchCodeView.as_view(), name="match-code"), | ||
| # interactive fiction | ||
| path("interactive-fiction/", views.IFGameCreateView.as_view(), name="interactive-fiction-create"), | ||
| path("upload/<int:pk>/", views.UploadFileView.as_view(), name="upload-file"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch
| data-maxlength>{{ form.content_warning.value }}</textarea> | ||
| </div> | ||
| <div> | ||
| <label for="id_image">Cover Imags</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch
Goal: Fix minor bugs before final presentation. A few variable name issues and url deletions that caused issue with submission and redirection. Added comments in files changed to give context.