Created
April 21, 2016 18:51
-
-
Save erickertz/3cb9f5e9cf6da379c0462679358e2805 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brand_code_to_associated_site = {"uo-us": Sites.UO_UK, "uo-eu": Sites.UO_US, "an-us": Sites.AN_UK, "an-eu": Sites.AN_US} | |
assocated_site = brand_code_to_associated_site.get(site.brand_code) | |
if not assocated_site: | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment