Created
January 7, 2019 14:27
-
-
Save ayang10/44ae677d996d715dcd850e295a5f6a52 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def get_collections(skuNo): | |
db = Database.Database('rugsystem_new') | |
db.local.execute("SELECT * FROM rugsystem_new.ul_skus US LEFT JOIN rugsystem_new.ul_designs UD ON US.design_id = UD.id LEFT JOIN rugsystem.ul_collections UC ON UD.collection_id = UC.id WHERE US.SkuNo = {}".format(int(skuNo))) | |
collect = {} | |
return collect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment