diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml index a482a89..f3d56b5 100644 --- a/docker-compose-prod.yml +++ b/docker-compose-prod.yml @@ -196,10 +196,7 @@ services: - ctel-sbt dashboard_refresh: - build: - context: api-cronjob - dockerfile: Dockerfile - image: sidp/api-caller-sbt:{{tag}} + image: public.ecr.aws/v4n9y6r8/sidp/api-caller-sbt:{{tag}} environment: - PROXY=http://be-ctel-sbt:9000 - ADMIN_USER_NAME=${ADMIN_USER_NAME} diff --git a/scripts/crawl_database_by_time.py b/scripts/crawl_database_by_time.py index 449e3f6..4628592 100644 --- a/scripts/crawl_database_by_time.py +++ b/scripts/crawl_database_by_time.py @@ -4,15 +4,20 @@ import boto3 import os from tqdm import tqdm from datetime import datetime, timedelta -from pytz import timezone +import pytz +from django.utils import timezone from dotenv import load_dotenv load_dotenv("../.env_prod") -OUTPUT_NAME = "all_0226_0304" -START_DATE = datetime(2024, 2, 26, tzinfo=timezone('Asia/Ho_Chi_Minh')) -END_DATE = datetime(2024, 3, 4, tzinfo=timezone('Asia/Ho_Chi_Minh')) +tz = pytz.timezone('Asia/Singapore') + +OUTPUT_NAME = "Feb29" +START_DATE = datetime(2024, 2, 29) +END_DATE = datetime(2024, 3, 1) +START_DATE = timezone.make_aware(START_DATE, tz) +END_DATE = timezone.make_aware(END_DATE, tz) # Database connection details db_host = os.environ.get('DB_HOST', "")