|
27 | 27 | other_basic_auth: "Basic {{ (other_username+':'+other_password) | b64encode }}" |
28 | 28 | when: other_available |
29 | 29 |
|
30 | | - |
31 | 30 | - name: Attempt login into DOMjudge |
32 | 31 | tags: all, fetch, results.tsv |
33 | 32 | block: |
|
63 | 62 | headers: |
64 | 63 | cookie: "{{ login_response.set_cookie }}" |
65 | 64 |
|
66 | | - |
67 | 65 | - name: Download results.tsv |
68 | 66 | tags: all, results.tsv |
69 | 67 | ansible.builtin.uri: |
|
99 | 97 | register: other_scoreboard |
100 | 98 | when: other_available |
101 | 99 |
|
102 | | -# - name: Convert scoreboard to nice json |
103 | | -# block: |
104 | | -# - name: Convert DOMjudge scoreboard to nice json |
105 | | -# ansible.builtin.set_fact: |
106 | | -# dj_scoreboard_nice: "{{ dj_scoreboard.json | to_nice_json }}" |
107 | | -# |
108 | | -# - name: Convert other scoreboard to nice json |
109 | | -# ansible.builtin.set_fact: |
110 | | -# other_scoreboard_nice: "{{ other_scoreboard.json | to_nice_json }}" |
111 | | -# when: other_available |
112 | | - |
113 | 100 | - name: Does Dj == other for scoreboard |
114 | 101 | shell: "{{ jd_loc }} /tmp/scoreboard.dj.json /tmp/scoreboard.other.json" |
115 | 102 | when: other_available |
|
140 | 127 | register: cds_awards |
141 | 128 | when: cds_available |
142 | 129 |
|
143 | | -# - name: Convert awards to nice json |
144 | | -# block: |
145 | | -# - name: Convert DOMjudge awards to nice json |
146 | | -# ansible.builtin.set_fact: |
147 | | -# dj_awards_nice: "{{ dj_awards.json | to_nice_json }}" |
148 | | -# |
149 | | -# - name: Convert cds awards to nice json |
150 | | -# ansible.builtin.set_fact: |
151 | | -# cds_awards_nice: "{{ cds_awards.json | to_nice_json }}" |
152 | | -# when: cds_available |
153 | | - |
154 | 130 | - name: Does Dj == CDS for awards |
155 | 131 | shell: "{{ jd_loc }} /tmp/awards.dj.json /tmp/awards.cds.json" |
156 | 132 | when: cds_available |
|
190 | 166 | - scoreboard |
191 | 167 | - teams |
192 | 168 |
|
193 | | - - name: "Store final standings (contest.zip)" |
| 169 | + - name: "Store final_standings.html (results.html)" |
| 170 | + tags: all, fetch |
| 171 | + ansible.builtin.uri: |
| 172 | + url: "{{ dj_url }}/jury/import-export/export/results.html" |
| 173 | + creates: "{{ repo }}/final_standings.html" |
| 174 | + dest: "{{ repo }}/final_standings.html" |
| 175 | + headers: |
| 176 | + cookie: "{{ login_response.set_cookie }}" |
| 177 | + |
| 178 | + - name: "Store (clarifications.html)" |
| 179 | + tags: all, fetch |
| 180 | + ansible.builtin.uri: |
| 181 | + url: "{{ dj_url }}/jury/import-export/export/clarifications.html" |
| 182 | + creates: "{{ repo }}/clarifications.html" |
| 183 | + dest: "{{ repo }}/clarifications.html" |
| 184 | + headers: |
| 185 | + cookie: "{{ login_response.set_cookie }}" |
| 186 | + |
| 187 | + - name: "Store final scoreboard (contest.zip)" |
194 | 188 | tags: all, fetch |
195 | 189 | ansible.builtin.uri: |
196 | 190 | url: "{{ dj_url }}/public/scoreboard-data.zip?contest={{ contest_id }}" |
197 | | - creates: "{{ repo }}/final_standings.zip" |
198 | | - dest: "{{ repo }}/final_standings.zip" |
| 191 | + creates: "{{ repo }}/final_scoreboard.zip" |
| 192 | + dest: "{{ repo }}/final_scoreboard.zip" |
199 | 193 | headers: |
200 | 194 | cookie: "{{ login_response.set_cookie }}" |
201 | 195 |
|
|
0 commit comments