positiveway / SureFinder

Surebet scanner and betting bot
28 stars 10 forks source link

FonbetBetting #105

Closed nadyr-mg closed 6 years ago

nadyr-mg commented 6 years ago

Resolve #103

ghost commented 6 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@3d30767). Click here to learn what that means. The diff coverage is 70.3%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #105   +/-   ##
=========================================
  Coverage          ?   91.38%           
=========================================
  Files             ?       28           
  Lines             ?     1893           
  Branches          ?        0           
=========================================
  Hits              ?     1730           
  Misses            ?      163           
  Partials          ?        0
Impacted Files Coverage Δ
surebet/bookmakers.py 96% <100%> (ø)
surebet/main.py 63.79% <100%> (ø)
surebet/parsing/fonbet.py 98.73% <100%> (ø)
surebet/handling/surebets.py 98.38% <100%> (ø)
surebet/handling/calculating.py 100% <100%> (ø)
surebet/betting/fonbet.py 25.28% <25.28%> (ø)
surebet/loading/fonbet.py 86.66% <87.5%> (ø)
surebet/parsing/bets.py 98.11% <95.23%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 3d30767...e049167. Read the comment docs.

ghost commented 6 years ago

Move _init_ and other functions into class FonbetBet. Move package betting from handling to the main level

nadyr-mg commented 6 years ago

FonbetBet class is used in module parsing

ghost commented 6 years ago

Replace logging.info by logging.error Example:

if "requestId" not in res:
        logging.info(res)
ghost commented 6 years ago

Pass login and password to _init function. Create class FonbetBot, move _init function here as the contractor. Also, move other functions into this class

nadyr-mg commented 6 years ago

loading/fonbet.py: redundant variable URL_JSON line 62:

line 68: there is built in func: "r_line.json()"

nadyr-mg commented 6 years ago

surebet/parsing/fonbet.py