Skip to content

Commit e964ae1

Browse files
committed
fix: lowercase text for appwrite id
1 parent fd0fd4a commit e964ae1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

appwrite_lab/_orchestrator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ def deploy_playwright_automation(
239239
"APPWRITE_ADMIN_EMAIL": lab.admin_email,
240240
"APPWRITE_ADMIN_PASSWORD": lab.admin_password,
241241
}
242+
envs = " ".join([f"{key}={value}" for key, value in env_vars.items()])
242243
with tempfile.TemporaryDirectory() as temp_dir:
243244
temp_file = Path(temp_dir) / "function.py"
244245
shutil.copy(function, temp_file)
@@ -253,7 +254,7 @@ def deploy_playwright_automation(
253254
PLAYWRIGHT_IMAGE,
254255
"bash",
255256
"-c",
256-
"pip install playwright asyncio && echo XXXX '$APPWRITE_URL' && python /playwright/function.py",
257+
f"pip install playwright asyncio && {envs} python /playwright/function.py",
257258
]
258259
cmd_res = self._run_cmd_safely(cmd)
259260
if type(cmd_res) is Response and cmd_res.error:

appwrite_lab/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def generate_missing_config(self):
3737
self.project_id = "".join(
3838
random.choices(string.ascii_letters + string.digits, k=10)
3939
)
40+
self.project_id = self.project_id.lower()
4041
if not self.admin_email:
4142
self.admin_email = f"admin_{self.project_id}@local.dev"
4243
if not self.admin_password:

0 commit comments

Comments
 (0)