Compare commits
No commits in common. "c9899c5d65d123eed66ac9e87c580c90c2776edd" and "220c956ba0986e1341391dea0a310c96c3f00ddb" have entirely different histories.
c9899c5d65
...
220c956ba0
|
|
@ -23,6 +23,4 @@ COPY agents/ agents/
|
||||||
COPY pyserver/ pyserver/
|
COPY pyserver/ pyserver/
|
||||||
COPY server.py .
|
COPY server.py .
|
||||||
|
|
||||||
ENV CONTAINERIZED=1
|
|
||||||
|
|
||||||
CMD ["python", "server.py"]
|
CMD ["python", "server.py"]
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import os
|
|
||||||
|
|
||||||
from flask import Flask, jsonify, request
|
from flask import Flask, jsonify, request
|
||||||
from agents import Agent
|
from agents import Agent
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
@ -26,7 +24,6 @@ class PyServer:
|
||||||
:param import_name: Flask application import name
|
:param import_name: Flask application import name
|
||||||
:type import_name: str
|
:type import_name: str
|
||||||
"""
|
"""
|
||||||
self.containerized : bool = bool(int(os.environ.get("CONTAINERIZED", "0")))
|
|
||||||
self.agent = agent
|
self.agent = agent
|
||||||
self.app = Flask(import_name)
|
self.app = Flask(import_name)
|
||||||
|
|
||||||
|
|
@ -52,7 +49,6 @@ class PyServer:
|
||||||
|
|
||||||
d = { **self.agent.profile, **d }
|
d = { **self.agent.profile, **d }
|
||||||
|
|
||||||
d["me.noordstar.peanuts.containerized"] = self.containerized
|
|
||||||
d["games"] = {}
|
d["games"] = {}
|
||||||
for game, (profile, _) in self.agent.registered_games.items():
|
for game, (profile, _) in self.agent.registered_games.items():
|
||||||
d["games"][game] = profile
|
d["games"][game] = profile
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue