Skip to content

Commit

Permalink
Minor improvement in CitySdkTourism Synchronizer #178
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Sep 28, 2014
1 parent 8afeb8d commit 404a85e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodeshot/interop/sync/synchronizers/citysdk_tourism.py
Expand Up @@ -173,12 +173,12 @@ def find_citysdk_category(self, layer_config=None):
self.config = layer_config

citysdk_category_id = self.config.get('citysdk_category_id', False)
self.authenticate()
response = requests.get(self.citysdk_categories_url, cookies=self.cookies)

# do we already have the category id in the db config?
# And is the category present in the API response?
if citysdk_category_id is not False and citysdk_category_id in response.content:

message = 'category with ID "%s" already present in config' % citysdk_category_id
self.verbose(message)
logger.info(message)
Expand Down

0 comments on commit 404a85e

Please sign in to comment.