Spaces:
Runtime error
Runtime error
Commit
·
aae5e4d
1
Parent(s):
80e9911
Update reader.py
Browse files
reader.py
CHANGED
@@ -10,7 +10,7 @@ def get_article():
|
|
10 |
filename = "info.txt"
|
11 |
placeholder = "please create an info.txt to customize this text"
|
12 |
|
13 |
-
title = bkgd = sgd1 = sgd2 = td = limitation = con1 = con2 = con3 = mems = placeholder
|
14 |
# check if info.txt is present
|
15 |
if os.path.isfile(filename):
|
16 |
# open info.txt in read mode
|
@@ -27,6 +27,7 @@ def get_article():
|
|
27 |
con1 = info.readline()
|
28 |
con2 = info.readline()
|
29 |
con3 = info.readline()
|
|
|
30 |
mems = info.readline()
|
31 |
#mem2 = info.readline()
|
32 |
#mem3 = info.readline()
|
@@ -63,6 +64,7 @@ def get_article():
|
|
63 |
line('li', con1)
|
64 |
line('li', con2)
|
65 |
line('li', con3)
|
|
|
66 |
with tag('div', klass='my-div'):
|
67 |
line('h2', 'Team Members')
|
68 |
line('p', mems)
|
|
|
10 |
filename = "info.txt"
|
11 |
placeholder = "please create an info.txt to customize this text"
|
12 |
|
13 |
+
title = bkgd = sgd1 = sgd2 = td = limitation = con1 = con2 = con3 = con4 = mems = placeholder
|
14 |
# check if info.txt is present
|
15 |
if os.path.isfile(filename):
|
16 |
# open info.txt in read mode
|
|
|
27 |
con1 = info.readline()
|
28 |
con2 = info.readline()
|
29 |
con3 = info.readline()
|
30 |
+
con4 = info.readline()
|
31 |
mems = info.readline()
|
32 |
#mem2 = info.readline()
|
33 |
#mem3 = info.readline()
|
|
|
64 |
line('li', con1)
|
65 |
line('li', con2)
|
66 |
line('li', con3)
|
67 |
+
line('li', con4)
|
68 |
with tag('div', klass='my-div'):
|
69 |
line('h2', 'Team Members')
|
70 |
line('p', mems)
|