Skip to content

Commit

Permalink
Merge pull request #11 from schwalle/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
schwalle authored Sep 17, 2021
2 parents 41074f4 + ead9c1c commit 37f3385
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@

name: Python application

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: [push]

jobs:
build:
Expand All @@ -34,3 +30,7 @@ jobs:
- name: Test with pytest
run: |
pytest
- name: Run betbot help to check dependencies
shell: bash
run: |
python ./kicktippbb.py --help
3 changes: 2 additions & 1 deletion kicktippbb.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ def parse_match_rows(browser: RoboBrowser, community, matchday = None):
gasttipp = row[3].find(
'input', id=lambda x: x and x.endswith('_gastTipp'))
try:
odds=[odd.replace(" ","") for odd in row[4].get_text().split("/")]
match = Match(row[1].get_text(), row[2].get_text(), row[0].get_text(
), row[4].get_text().replace("/",""), row[5].get_text().replace("/",""), row[6].get_text())
), odds[0], odds[1], odds[2])
except:
print("Error: Not enough data, maybe there are no rates yet.")
sys.exit()
Expand Down

0 comments on commit 37f3385

Please sign in to comment.