34aa81447b74b182fcfc419ba02e7e1cbed95292,poker/table_analysers/table_screen_based.py,TableScreenBased,get_total_pot_value,#TableScreenBased#Any#,581

Before Change



        try:
            if not str(value) == "":
                value = float(re.findall(r"\d{1,2}\.\d{1,2}", str(value))[0])
        except:
            self.logger.warning("Total pot regex problem: " + str(value))
            value = ""

After Change



        self.totalPotValue  = self.find_value("total_pot_value", screenshot_pilImage, 0.01)    

        if self.totalPotValue != "":
            self.totalPotValue = float(self.totalPotValue)

        if self.totalPotValue == "":           
            self.totalPotValue = 0
            self.logger.warning("Total pot regex problem: " + str(value))
            self.gui_signals.signal_status.emit("Unable to get pot value")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dickreuter/Poker
Commit Name: 34aa81447b74b182fcfc419ba02e7e1cbed95292
Time: 2019-12-23
Author: 47919514+MikePlace1971@users.noreply.github.com
File Name: poker/table_analysers/table_screen_based.py
Class Name: TableScreenBased
Method Name: get_total_pot_value


Project Name: dickreuter/Poker
Commit Name: 34aa81447b74b182fcfc419ba02e7e1cbed95292
Time: 2019-12-23
Author: 47919514+MikePlace1971@users.noreply.github.com
File Name: poker/table_analysers/table_screen_based.py
Class Name: TableScreenBased
Method Name: get_bot_pot


Project Name: dickreuter/Poker
Commit Name: 440d75a3ab534b7e33467e807d6400e1577ee3dc
Time: 2016-11-12
Author: dickreuter@yahoo.com
File Name: table_analysers/table_screen_based.py
Class Name: TableScreenBased
Method Name: get_new_hand