Skip to content

Commit

Permalink
revert model to use _if
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Oct 2, 2023
1 parent 2387d1f commit fd6b7a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/src/backend/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ class Meta:

# Props
id = models.CharField(validators=[validate_id], max_length=128)
conditional = models.TextField(null=True)
_if = models.TextField(null=True)
cache = models.BooleanField(null=True)
depends_on = models.JSONField(null=True, default=list)
description = models.TextField(null=True)
Expand Down
2 changes: 1 addition & 1 deletion src/api/src/backend/views/http/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ class BaseTask(BaseModel):
description: str = None
execution_profile: TaskExecutionProfile = TaskExecutionProfile()
input: Dict[str, TaskInputValue] = {}
_if: str = None
conditional: str = None
output: Dict[str, BaseOutputValue] = {}

class Config:
Expand Down
2 changes: 2 additions & 0 deletions src/api/src/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ python backend/setup.py

# Migrates the db schema
chmod a+x ./scripts/migrate.sh
echo "BEFORE MIGRATE"
./scripts/migrate.sh
echo "AFTER MIGRATE"

# Uses the envrionment variables to resolve superuser username,
# password, and email
Expand Down

0 comments on commit fd6b7a7

Please sign in to comment.