Tum 5 年 前
コミット
f5e81c5d60
共有4 個のファイルを変更した3 個の追加3 個の削除を含む
  1. BIN
      __pycache__/app.cpython-38.pyc
  2. BIN
      __pycache__/fpl_lib.cpython-38.pyc
  3. 1 1
      templates/lgs.html
  4. 2 2
      templates/team2.html

BIN
__pycache__/app.cpython-38.pyc


BIN
__pycache__/fpl_lib.cpython-38.pyc


+ 1 - 1
templates/lgs.html

@@ -44,7 +44,7 @@
44 44
      <ol>
45 45
          
46 46
     {% for team in lg.teams %}
47
-    <li><a href="{{ url_for(".team", team_id=team._id) }}">{{ team['title'] }}</a></li>
47
+    <li><a href="{{ url_for(".team2", team_id=team._id) }}">{{ team['title'] }}</a></li>
48 48
     {% endfor %}
49 49
      </ol>
50 50
 {% endif %}

+ 2 - 2
templates/team2.html

@@ -9,7 +9,7 @@
9 9
         
10 10
     <ul>
11 11
     {% for r in results %}
12
-    <li><input type=checkbox name="players" value="{{ r.id }}" />{{ r.info }}</li>
12
+    <li><input type=checkbox name="players" value="{{ r.id }}" /><a href="{{ url_for("get_player", pid=r.id) }}" target="_blank">{{ r.info }}</a></li>
13 13
     {% endfor %}
14 14
     </ul>
15 15
     <input type="submit" name="selectPlayers" value="Select Players">
@@ -22,7 +22,7 @@
22 22
     <form method="post">
23 23
     <ol>
24 24
     {% for p in  currentPlayers %}
25
-    <li>{{ p }}  GS={{ p.goals_scored }} <input type="checkbox" name="deletes" value="{{ p.id  }}">Delete</li>
25
+    <li><a href="{{ url_for("get_player", pid=p.id) }}" target="_blank">{{ p }}</a>  GS={{ p.goals_scored }} <input type="checkbox" name="deletes" value="{{ p.id  }}">Delete</li>
26 26
     {% endfor %}
27 27
     </ul>
28 28
     <input type="submit" name="deletePlayer"  value="Delete Players">