Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 801ac005 authored by 72ridwan's avatar 72ridwan
Browse files

Fix bugs in lab_2_addon/views.py

parent 3f0791ad
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -3,9 +3,9 @@ from lab_1.views import mhs_name, birth_date
# Create a list of biodata that you wanna show on webpage:
# [{'subject' : 'Name', 'value' : 'Igor'},{{'subject' : 'Birth Date', 'value' : '11 August 1970'},{{'subject' : 'Sex', 'value' : 'Male'}
bio_dict = [{'subject' : 'Name', 'Rachmat Ridwan' : mhs_name},\
{'subject' : 'Birth Date', '11 August 1998' : birth_date.strftime('%d %B %Y')},\
{'subject' : 'Sex', 'Laki-Laki' : ''}]
bio_dict = [{'subject' : 'Name', 'value' : mhs_name},\
{'subject' : 'Birth Date', 'value' : birth_date.strftime('%d %B %Y')},\
{'subject' : 'Sex', 'value' : 'Male'}]
def index(request):
response = {}
......
......@@ -4,7 +4,7 @@ from lab_1.views import mhs_name, birth_date
# [{'subject' : 'Name', 'value' : 'Igor'},{{'subject' : 'Birth Date', 'value' : '11 August 1970'},{{'subject' : 'Sex', 'value' : 'Male'}
bio_dict = [{'subject' : 'Name', 'Rachmat Ridwan' : mhs_name},\
{'subject' : 'Birth Date', '11 August 1998' : birth_date.strftime('%30 %10 %1998')},\
{'subject' : 'Birth Date', '11 August 1998' : birth_date.strftime('%d %B %Y')},\
{'subject' : 'Sex', 'Laki-Laki' : ''}]
def index(request):
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment