Merge pull request #2 from iFrez/patch-1

Update main.py
This commit is contained in:
Tim 2019-09-26 19:02:57 +03:00 committed by GitHub
commit f2d2d3cccb
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ def get_games():
if last_div: if last_div:
game_cost = last_div.getText().replace('(', '').replace(')', '').replace('P', '') game_cost = last_div.getText().replace('(', '').replace(')', '').replace('P', '')
game_name = item.find('a', {'class': 'giveaway__heading__name'}).text game_name = item.find('a', {'class': 'giveaway__heading__name'}).text.encode('utf-8')
if int(points) - int(game_cost) < 0: if int(points) - int(game_cost) < 0:
print('Not enough points to enter: ' + game_name) print('Not enough points to enter: ' + game_name)