Skip to content

Commit

Permalink
fix: reduce length of random id generated for data extract
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Mar 24, 2024
1 parent e22f53c commit f8f57f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/app/db/postgis_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import json
import logging
from datetime import datetime, timezone
from typing import Optional, Union
from random import getrandbits
from typing import Optional, Union

import geojson
import requests
Expand Down Expand Up @@ -386,7 +386,7 @@ def add_required_geojson_properties(
else:
# Random id
# NOTE 32-bit int is max supported by standard postgres Integer
properties["osm_id"] = getrandbits(32)
properties["osm_id"] = getrandbits(30)

# Other required fields
if not properties.get("tags"):
Expand Down

0 comments on commit f8f57f0

Please sign in to comment.