Skip to content

Commit

Permalink
fix: Escape sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
Simatwa committed Apr 10, 2024
1 parent 1a98d45 commit 8d82652
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 align="center">smartbetsAPI</h1>
<p align="center">
<a href="https://github.com/Simatwa/smartbetsAPI"><img alt="Github" src="https://img.shields.io/static/v1?logo=github&color=blueviolet&label=Test&message=Passing"/></a> <a href="LICENSE"><img alt="License" src="https://img.shields.io/static/v1?logo=GPL&color=Blue&message=GPL-v3&label=License"/></a> <a href="https://pypi.org/project/smartbetsAPI"><img alt="PyPi" src="https://img.shields.io/static/v1?logo=pypi&label=Pypi&message=v1.2.5&color=green"/></a> <a href="https://github.com/psf/black"><img alt="Black" src="https://img.shields.io/static/v1?logo=Black&label=Code-style&message=Black"/></a> <a href="#"><img alt="Accuracy" src="https://img.shields.io/static/v1?logo=accuracy&label=Accuracy&message=55%&color=yellow"/></a> <a href="#"><img alt="Passing" src="https://img.shields.io/static/v1?logo=Docs&label=Docs&message=Passing&color=green"/></a> <a href="#"><img alt="coverage" src="https://img.shields.io/static/v1?logo=Coverage&label=Coverage&message=100%&color=yellowgreen"/></a> <a href="#" alt="progress"><img alt="Progress" src="https://img.shields.io/static/v1?logo=Progress&label=Progress&message=95%&color=green"/></a> <a href="https://pepy.tech/project/smartbetsapi"><img src="https://static.pepy.tech/personalized-badge/smartbetsapi?period=total&units=international_system&left_color=grey&left_text=Downloads" alt="Downloads"></a></p><br>
<a href="https://github.com/Simatwa/smartbetsAPI"><img alt="Github" src="https://img.shields.io/static/v1?logo=github&color=blueviolet&label=Test&message=Passing"/></a> <a href="LICENSE"><img alt="License" src="https://img.shields.io/static/v1?logo=GPL&color=Blue&message=GPL-v3&label=License"/></a> <a href="https://pypi.org/project/smartbetsAPI"><img alt="PyPi" src="https://img.shields.io/static/v1?logo=pypi&label=Pypi&message=v1.2.6&color=green"/></a> <a href="https://github.com/psf/black"><img alt="Black" src="https://img.shields.io/static/v1?logo=Black&label=Code-style&message=Black"/></a> <a href="#"><img alt="Accuracy" src="https://img.shields.io/static/v1?logo=accuracy&label=Accuracy&message=55%&color=yellow"/></a> <a href="#"><img alt="Passing" src="https://img.shields.io/static/v1?logo=Docs&label=Docs&message=Passing&color=green"/></a> <a href="#"><img alt="coverage" src="https://img.shields.io/static/v1?logo=Coverage&label=Coverage&message=100%&color=yellowgreen"/></a> <a href="#" alt="progress"><img alt="Progress" src="https://img.shields.io/static/v1?logo=Progress&label=Progress&message=95%&color=green"/></a> <a href="https://pepy.tech/project/smartbetsapi"><img src="https://static.pepy.tech/personalized-badge/smartbetsapi?period=total&units=international_system&left_color=grey&left_text=Downloads" alt="Downloads"></a></p><br>

> "Punter's choice"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fastapi[all]==0.110.1
appdirs==1.4.4
requests==2.31.0
requests[socks]==2.31.0
colorama==0.4.6
bs4==0.0.1
Faker==15.3.4
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_file(nm: str) -> list:
install_requires=[
"fastapi[all]==0.110.1",
"appdirs==1.4.4",
"requests==2.31.0",
"requests[socks]==2.31.0",
"colorama==0.4.6",
"bs4==0.0.1",
"Faker==15.3.4",
Expand Down
2 changes: 1 addition & 1 deletion smartbets_API/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.2.5"
__version__ = "1.2.6"
__author__ = "Smartwa Caleb"
from .bet_at_rest_api_level import predictor as rest_api
from .predictor import predictor
Expand Down
4 changes: 2 additions & 2 deletions smartbets_API/bet_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def nameFinder(html, sp=""):

# Generating google search link
def google(search):
key = re.sub(f"\s", "+", search)
key = re.sub(r"\s", "+", search)
stat = f"""https://www.google.com/search?q={key}"""
return stat

Expand All @@ -255,7 +255,7 @@ def opener(link, fmt="html"):


def getInt(score):
score = re.sub(f"\s", "", score)
score = re.sub(r"\s", "", score)
after = []
score = score.split("-")
for dat in score:
Expand Down
6 changes: 3 additions & 3 deletions smartbets_API/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def parse_handler():
title="smartbetsAPI",
summary="Worldwide soccer-matches predictor",
version=__version__,
description="""View official docs at [Simatwa/smartbets](https://github.com/Simatwa/smartbetsapi)""",
description="""Visit official repo at [Simatwa/smartbets](https://github.com/Simatwa/smartbetsapi)""",
license_info={
"name": "GNUv3",
"url": "https://github.com/Simatwa/smartbetsAPI/blob/main/LICENSE?raw=true",
Expand Down Expand Up @@ -122,8 +122,8 @@ class Prediction(BaseModel):
- `ov25` : Probability of having more than 3 goals
- `ov35` : Probability of having more than 4 goals
- `choice` : Probability of the specified 'result' to occur
- `result` : The most suitable outcome from [1,1x,x,2x,2]
- `pick` : The most suitable outcome from [1,1x,x,2x,2,gg,ov15,ov25,ov35]
- `result` : The most suitable outcome from **[1,1x,x,2x,2]**
- `pick` : The most suitable outcome from **[1,1x,x,2x,2,gg,ov15,ov25,ov35]**
"""

g: float
Expand Down

0 comments on commit 8d82652

Please sign in to comment.