File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ def contest_search():
88
88
@app .route ('/tag_search' ,methods = ['POST' ])
89
89
def tag_search ():
90
90
tagName = request .args .get ('tagName' )
91
- return render_template ('tag_result.html' ,tagName = tagName )
91
+ problems = db .session .query (Problem_Tag ).filter_by (first_tag = tagName )
92
+ return render_template ('tag_result.html' ,tagName = tagName ,problems = problems )
92
93
93
94
@app .route ('/search/<problem_id>/<int:page>' , methods = ['GET' ,'POST' ])
94
95
def contest_get (problem_id ,page = 1 ):
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ <h3>新着問題</h3>
78
78
</ thead > {% for problem in problems%}
79
79
< tbody >
80
80
< tr >
81
- < th scope ="row "> {{loop.index}}</ th >
81
+ < td scope ="row "> {{loop.index}}</ td >
82
82
< td >
83
83
< a href ="/search/{{problem[1]}}/1?contestname={{problem[0]}} " method ="POST "> {{problem[0]}}</ a >
84
84
</ td >
Original file line number Diff line number Diff line change 28
28
< title > AtCoder Editorials</ title >
29
29
</ head >
30
30
31
- < body style ="padding-top:5rem ">
31
+ < body style ="padding-top:5rem container-fluid ">
32
32
<!-- Google Tag Manager (noscript) -->
33
33
< noscript > < iframe src ="https://www.googletagmanager.com/ns.html?id=GTM-WW39BS6 " height ="0 " width ="0 "
34
34
style ="display:none;visibility:hidden "> </ iframe > </ noscript >
57
57
</ div >
58
58
</ nav >
59
59
< h1 > {{tagName}}</ h1 >
60
+ < div >
61
+ < table class ="table table-borderd ">
62
+ < thead class ="thead-light ">
63
+ < tr >
64
+ < th scope ="col "> #</ th >
65
+ < th scope ="col "> 名前</ th >
66
+ </ tr >
67
+ </ thead > {% for problem in problems%}
68
+ < tbody >
69
+ < tr >
70
+ < td scope ="row "> {{loop.index}}</ td >
71
+ < td >
72
+ < a href ="/search/{{problem.problem_official_name}}/1?contestname={{problem.problem_name}} " method ="POST "> {{problem_name}}</ a >
73
+ </ td >
74
+ </ tr >
75
+ {%endfor%}
76
+ </ tbody >
77
+
78
+ </ table >
79
+ </ div >
80
+
60
81
61
82
62
83
< script src ="https://code.jquery.com/jquery-3.4.1.js " integrity ="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU= " crossorigin ="anonymous "> </ script >
You can’t perform that action at this time.
0 commit comments