Skip to content

Instantly share code, notes, and snippets.

@erickertz
Created April 21, 2016 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erickertz/3cb9f5e9cf6da379c0462679358e2805 to your computer and use it in GitHub Desktop.
Save erickertz/3cb9f5e9cf6da379c0462679358e2805 to your computer and use it in GitHub Desktop.
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