소스 검색

fix create sms batch

Clovis JAQUIN 2 년 전
부모
커밋
1aea189f92
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/create_sms_batch.py

+ 1 - 1
app/create_sms_batch.py

@@ -16,7 +16,7 @@ def main() -> None:
     print("Create SMS ")
     with session() as db:
         # Get or create the project hosting the sms
-        result = db.execute(select(Project).where(Project.email == TEST_SMS_PROJECT_NAME))
+        result = db.execute(select(Project).where(Project.name == TEST_SMS_PROJECT_NAME))
         project = result.scalars().first()
         if project is None:
             project = Project(name=TEST_SMS_PROJECT_NAME)