fix(platform): allowing condition block to compare 2 strings (#8771)

Co-authored-by: Reinier van der Leer <pwuts@agpt.co>
Co-authored-by: Bently <tomnoon9@gmail.com>
pull/8773/head^2
Abhimanyu Yadav 2024-11-27 02:10:51 +05:30 committed by GitHub
parent f1414550f9
commit 951948d239
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 4 deletions

View File

@ -75,11 +75,17 @@ class ConditionBlock(Block):
value1 = input_data.value1
if isinstance(value1, str):
value1 = float(value1.strip())
try:
value1 = float(value1.strip())
except ValueError:
value1 = value1.strip()
value2 = input_data.value2
if isinstance(value2, str):
value2 = float(value2.strip())
try:
value2 = float(value2.strip())
except ValueError:
value2 = value2.strip()
yes_value = input_data.yes_value if input_data.yes_value is not None else value1
no_value = input_data.no_value if input_data.no_value is not None else value2

View File

@ -55,7 +55,7 @@ This will generate the Prisma client for PostgreSQL. You will also need to run t
```bash
cd autogpt_platform/
docker compose up -d
docker compose up -d --build
```
You can then run the migrations from the `backend` directory.

View File

@ -90,7 +90,7 @@ To run the backend services, follow these steps:
* Run the backend services:
```
docker compose up -d
docker compose up -d --build
```
This command will start all the necessary backend services defined in the `docker-compose.combined.yml` file in detached mode.