slight bugfix for /edit_quest

This commit is contained in:
iou1name 2018-10-02 13:51:58 -04:00
parent 423acc7077
commit 7874151f32
2 changed files with 3 additions and 3 deletions

View File

@ -28,8 +28,8 @@
</tr>
<tr>
<td>Live time:</td>
<td><input type="date" name="live_date" id="live_date" value="{{ localtime(quest.live_time).strftime('%Y-%m-%d') }}"></td>
<td><input type="time" name="live_time" id="live_time" step="60" value="{{ localtime(quest.live_time).strftime('%H:%M:%S') }}"></td>
<td><input type="date" name="live_date" id="live_date" value="{% if quest.live_time %}{{ localtime(quest.live_time).strftime('%Y-%m-%d') }}{% endif %}"></td>
<td><input type="time" name="live_time" id="live_time" step="60" value="{% if quest.live_time %}{{ localtime(quest.live_time).strftime('%H:%M:%S') }}{% endif %}"></td>
</tr>
</table>
<input type="hidden" name="timezone" id="timezone">

View File

@ -49,7 +49,7 @@ def quest(request, quest_id, page_num='0'):
return render(request, 'quest/quest.html', context)
def edit_quest(request, quest_id, page_num=1):
def edit_quest(request, quest_id, page_num='0'):
"""
Edit quest page. Only available to the QM.
"""