Assign external URI for Kayak hotels.

Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
Viktor Govako
2023-09-01 08:25:38 -03:00
committed by Konstantin Pastbin
parent e7c04c5459
commit 6368ba477f
16 changed files with 150 additions and 45 deletions

View File

@@ -281,10 +281,6 @@ class PathProvider:
def ugc_path(self) -> AnyStr:
return os.path.join(self.intermediate_data_path, "ugc_db.sqlite3")
@property
def hotels_path(self) -> AnyStr:
return os.path.join(self.intermediate_data_path, "hotels.csv")
@property
def promo_catalog_cities_path(self) -> AnyStr:
return os.path.join(self.intermediate_data_path, "promo_catalog_cities.json")

View File

@@ -45,7 +45,7 @@ class GenTool:
"stats_types": bool,
"version": bool,
"threads_count": int,
"booking_data": str,
"hotels_path": str,
"promo_catalog_cities": str,
"brands_data": str,
"brands_translations_data": str,

View File

@@ -104,7 +104,6 @@ class StagePreprocess(Stage):
@outer_stage
@depends_from_internal(
D(settings.HOTELS_URL, PathProvider.hotels_path),
D(settings.PROMO_CATALOG_CITIES_URL, PathProvider.promo_catalog_cities_path, "p"),
D(settings.POPULARITY_URL, PathProvider.popularity_path, "p"),
D(settings.FOOD_URL, PathProvider.food_paths, "p"),
@@ -119,7 +118,7 @@ class StageFeatures(Stage):
if is_accepted(env, StageDescriptions):
extra.update({"idToWikidata": env.paths.id_to_wikidata_path})
extra.update({"booking_data": env.paths.hotels_path})
extra.update({"hotels_path": settings.HOTELS_URL})
if env.production:
extra.update(

View File

@@ -69,6 +69,7 @@ NEED_BUILD_WORLD_ROADS: false
# Urls for production maps generation.
# UGC_URL:
# Local path (not url!) where hotels.csv and placefeed.csv files are located.
# HOTELS_URL:
# PROMO_CATALOG_CITIES:
# POPULARITY_URL: