| @@ 77-85 (lines=9) @@ | ||
| 74 | ) |
|
| 75 | ||
| 76 | ||
| 77 | @site_blueprint.route("/columns") |
|
| 78 | def columns(): |
|
| 79 | article_block = get_data(MAIN_SITE) |
|
| 80 | title = article_block.find("a", {"name": "columns"}).find_parent("h2") |
|
| 81 | content = title.find_next("ul") |
|
| 82 | return render_template( |
|
| 83 | "articles.html", |
|
| 84 | articles=content, |
|
| 85 | title=title.get_text(), |
|
| 86 | ) |
|
| 87 | ||
| 88 | ||
| @@ 65-73 (lines=9) @@ | ||
| 62 | ) |
|
| 63 | ||
| 64 | ||
| 65 | @site_blueprint.route("/texts") |
|
| 66 | def texts(): |
|
| 67 | article_block = get_data(MAIN_SITE) |
|
| 68 | title = article_block.find("a", {"name": "texts"}).find_parent("h2") |
|
| 69 | content = title.find_next("ol") |
|
| 70 | return render_template( |
|
| 71 | "articles.html", |
|
| 72 | articles=content, |
|
| 73 | title=title.get_text(), |
|
| 74 | ) |
|
| 75 | ||
| 76 | ||
| @@ 53-61 (lines=9) @@ | ||
| 50 | ) |
|
| 51 | ||
| 52 | ||
| 53 | @site_blueprint.route("/articles") |
|
| 54 | def articles(): |
|
| 55 | article_block = get_data(MAIN_SITE) |
|
| 56 | title = article_block.find("a", {"name": "articles"}).find_parent("h2") |
|
| 57 | content = title.find_next("ol") |
|
| 58 | return render_template( |
|
| 59 | "articles.html", |
|
| 60 | articles=content, |
|
| 61 | title=title.get_text(), |
|
| 62 | ) |
|
| 63 | ||
| 64 | ||