diff --git a/pypokergui/server/poker.py b/pypokergui/server/poker.py index c03adf7..f099541 100644 --- a/pypokergui/server/poker.py +++ b/pypokergui/server/poker.py @@ -134,7 +134,7 @@ def setup_config(config): def start_server(config_path, port, speed): global MODE_SPEED with open(config_path, "rb") as f: - config = yaml.load(f) + config = yaml.safe_load(f) setup_config(config) MODE_SPEED = speed app = Application() @@ -147,4 +147,4 @@ def main(): if __name__ == '__main__': main() - + diff --git a/pypokergui/server/templates/round_state.html b/pypokergui/server/templates/round_state.html index fd299ef..c76e7b8 100644 --- a/pypokergui/server/templates/round_state.html +++ b/pypokergui/server/templates/round_state.html @@ -19,7 +19,7 @@

Next Player is
- {% for idx, player in zip(range(len(round_state['seats']))[:len(round_state['seats'])/2], round_state['seats']) %} + {% for idx, player in zip(range(len(round_state['seats']))[:int(len(round_state['seats'])/2)], round_state['seats']) %} {% include "player_game.html" %} {% end %}
@@ -62,7 +62,7 @@

${{ sidepot['amount'] }}

- {% for idx, player in zip(range(len(round_state['seats']))[len(round_state['seats'])/2:], round_state['seats'][len(round_state['seats'])/2:]) %} + {% for idx, player in zip(range(len(round_state['seats']))[int(len(round_state['seats'])/2):], round_state['seats'][int(len(round_state['seats'])/2):]) %} {% include "player_game.html" %} {% end %}
diff --git a/requirements.txt b/requirements.txt index e415311..3d27a3a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,8 @@ -pypokerengine -tornado -click -pyyaml +click==6.7 +colorama==0.4.6 +neat-python==0.92 +PyPokerEngine==1.0.1 +PyPokerGUI==0.0.7 +PyYAML==6.0.2 +tabulate==0.9.0 +tornado==6.4.2