Skip to content

Commit

Permalink
fix: db query
Browse files Browse the repository at this point in the history
  • Loading branch information
cka-y committed Jul 24, 2024
1 parent d38cc0a commit faa4f64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion functions-python/extract_bb/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def extract_bounding_box_batch(_):
session = start_db_session(os.getenv("FEEDS_DATABASE_URL"))
datasets = (
session.query(Gtfsdataset)
.filter(Gtfsdataset.bounding_box is None)
.filter(Gtfsdataset.bounding_box == None) # noqa: E711
.filter(Gtfsdataset.latest)
.all()
)
Expand Down
1 change: 1 addition & 0 deletions infra/functions-python/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ resource "google_cloudfunctions2_function" "extract_bb_batch" {
environment_variables = {
PROJECT_ID = var.project_id
PUBSUB_TOPIC_NAME = google_pubsub_topic.dataset_updates.name
PYTHONNODEBUGRANGES = 0
}
available_memory = local.function_extract_bb_config.memory
timeout_seconds = local.function_extract_bb_config.timeout
Expand Down

0 comments on commit faa4f64

Please sign in to comment.