diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2019-05-22 16:08:03 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2019-05-22 21:13:05 +0300 |
commit | 8feb8457c6b43cb0807085e13c78b247d0a20db9 (patch) | |
tree | d9c35522cfe55a5d8d8ff9a356206e53d84c951f /tools | |
parent | 7f550f91f8521e3848d140f813fa681c12e51654 (diff) |
[core] review fixes + cross_reference is renamed to promo
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/ResponseProvider.py | 6 | ||||
-rw-r--r-- | tools/python/jsons.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/python/ResponseProvider.py b/tools/python/ResponseProvider.py index 31569d6f3d..61551b5b1c 100644 --- a/tools/python/ResponseProvider.py +++ b/tools/python/ResponseProvider.py @@ -147,7 +147,7 @@ class ResponseProvider: "/partners/taxi_info": self.partners_yandex_taxi_info, "/partners/get-offers-in-bbox/": self.partners_rent_nearby, "/partners/CalculateByCoords": self.partners_calculate_by_coords, - "/gallery/city/TestOsmId/": self.cross_reference_gallery_city, + "/gallery/city/TestId/": self.promo_gallery_city, }[url]() except: return self.test_404() @@ -240,8 +240,8 @@ class ResponseProvider: def partners_calculate_by_coords(self): return Payload(jsons.PARTNERS_CALCULATE_BY_COORDS) - def cross_reference_gallery_city(self): - return Payload(jsons.CROSS_REFERENCE_GALLERY_CITY) + def promo_gallery_city(self): + return Payload(jsons.PROMO_GALLERY_CITY) def kill(self): logging.debug("Kill called in ResponseProvider") diff --git a/tools/python/jsons.py b/tools/python/jsons.py index d4a541bb32..be08c3eb0e 100644 --- a/tools/python/jsons.py +++ b/tools/python/jsons.py @@ -514,7 +514,7 @@ PARTNERS_CALCULATE_BY_COORDS = """ } """ -CROSS_REFERENCE_GALLERY_CITY = """ +PROMO_GALLERY_CITY = """ { "data": [ { |