Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More, more & more... #26

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
{
"dockerFile": "Dockerfile",
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"eamodio.gitlens",
"ms-azuretools.vscode-docker",
"vscode-icons-team.vscode-icons"
],
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"eamodio.gitlens",
"ms-azuretools.vscode-docker",
"vscode-icons-team.vscode-icons"
]
}
},
"remoteEnv": {
"FLASK_APP": "web.py",
"FLASK_DEBUG": "true"
},
"containerUser": "user"
}
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ docker run -d --name sammy_ofer \
## Debug
```
pip install -r requirements.txt
export FLASK_APP=web.py
export FLASK_DEBUG=true
flask run --port=5001
```

Expand Down
15 changes: 6 additions & 9 deletions html_templates/next.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@
{% for key, value in mygames.items() %}
{% set scraped_date_time, league, home_team, home_team_en, home_team_url, game_hour, guest_team, guest_team_en, guest_team_url, game_time_delta, game_hour_delta, specs_word, specs_number, poll, notes = value %}
{% if guest_team_url != '' %}
{% set guest_team = '<a href="' ~ guest_team_url ~ '" target="_blank">' ~ guest_team ~ '</a>' %}
{% set guest_team_alter = '<a href="' ~ guest_team_url ~ '" target="_blank">' ~ guest_team ~ '</a>' %}
{% else %}
{% set guest_team_alter = guest_team %}
{% endif %}
<div class="divTableRow">
<div class="divTableCell">{{ loop.index }}</div>
Expand All @@ -86,7 +88,7 @@
<div class="divTableCell">{{ scraped_date_time.strftime('%H:%M') }}</div>
<div class="divTableCell">{{ league }}</div>
<div class="divTableCell"><img width="18" height="18" src="assets/teams/{{ home_team_en }}.png">&nbsp;<a href="{{ home_team_url }}" target="_blank">{{ home_team }}</a></div>
<div class="divTableCell"><img width="18" height="18" src="assets/teams/{{ guest_team_en }}.png">&nbsp;{{ guest_team | safe }}</div>
<div class="divTableCell"><img width="18" height="18" src="assets/teams/{{ guest_team_en }}.png">&nbsp;{{ guest_team_alter | safe }}</div>
<div class="divTableCell">{{ specs_word }}</div>
<div class="divTableCell" {% if specs_number == 0 %}style="background: yellow;" {% endif %}>{{ specs_number }}</div>
<div class="divTableCell">
Expand All @@ -100,16 +102,11 @@
"specs_word": "{{ specs_word }}",
"specs_number": "{{ specs_number }}",
"poll": "{{ poll }}",
"notes": "{{ notes }}"}'
>
עדכן</option>
"notes": "{{ notes }}"}'>עדכן</option>
<option id="delete" value='{
"action":"delete",
"home_team":"{{ home_team }}",
"guest_team":"{{ guest_team }}"}'
>
מחק
</option>
"guest_team":"{{ guest_team }}"}'>מחק</option>
</select>
</form>
</div>
Expand Down
Loading