Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • ll21215/apt_exercises
  • hb09106/apt_exercises
  • afischer/apt_exercises
  • sm27496/apt2020
  • ia19390/apt_exercises
  • pk02862/apt_exercises
  • cd28198/apt_exercises
  • ma05240/apt_exercises
  • jp01114/apt_exercises
  • mf19908/apt_exercises
  • an25923/apt_exercises
  • ma18960/apt_exercises
  • fa30968/apt_exercises
  • jg08184/apt_exercises
  • gs27324/apt_exercises
  • ss18986/apt_exercises
16 results
Show changes
Commits on Source (1)
......@@ -21,6 +21,8 @@ def read_csv(filename):
with open(filename) as csvfile:
### EDIT BELOW HERE ###
reader = csv.reader(csvfile, delimiter=";")
for row in reader:
result.append(row);
pass
### EDIT ABOVE HERE ###
......@@ -38,7 +40,9 @@ def csv_to_html(csvdata):
"""
htmlstring = ""
### EDIT BELOW HERE ###
htmlline = "<tr><td>{}</td><td>{}</td><td>{}</td></tr>\n"
for i in range(0,len(csvdata)):
htmlline = "<tr><td>{}</td><td>{}</td><td>{}</td></tr>\n".format(csvdata[i][0],csvdata[i][1],csvdata[i][2])
htmlstring = htmlstring + htmlline
pass
### EDIT ABOVE HERE ###
......@@ -51,7 +55,10 @@ def combine_template_with_data(template_string, htmldata):
tabular data.
"""
### EDIT BELOW HERE ###
return ""
fullhtml = template_string.format(htmldata);
return fullhtml
### EDIT ABOVE HERE ###
......