Skip to content

Commit

Permalink
Fix make
Browse files Browse the repository at this point in the history
  • Loading branch information
rustprooflabs committed May 24, 2024
1 parent c821bec commit 75a1529
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docker/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,10 @@ def log_import_message(import_id, msg, schema_name):
msg : str
schema_name: str
"""
pbf_timestamp = os.environ['PBF_TIMESTAMP']
try:
pbf_timestamp = os.environ['PBF_TIMESTAMP']
except KeyError:
pbf_timestamp = os.environ['PGOSM_DATE']
sql_raw = """
UPDATE {schema_name}.pgosm_flex
SET import_status = %(msg)s ,
Expand Down
2 changes: 1 addition & 1 deletion docker/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def okay_to_run(self, prior_import: dict) -> bool:
# Check git version against latest.
# If current version is lower than prior version from latest import, stop.
prior_import_version = prior_import['pgosm_flex_version_no_hash']
git_tag = helpers.get_git_info(tag_only=True)
git_tag = get_git_info(tag_only=True)

if git_tag == '-- (version unknown) --':
msg = 'Unable to detect PgOSM Flex version from Git.'
Expand Down
2 changes: 1 addition & 1 deletion docker/tests/test_osm2pgsql_recommendation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import unittest

import osm2pgsql_recommendation
from import_mode import ImportMode
from helpers import ImportMode


class Osm2pgsqlRecommendationTests(unittest.TestCase):
Expand Down

0 comments on commit 75a1529

Please sign in to comment.