def check_local_avail_queryset(supplier_PID,queryset,keytype='name'): storelist,input = data_prep(queryset,keytype) # need to get dpci based on online id availdata =check_local_avail_listset(supplier_PID,input) print availdata return storelist,availdata
def check_local_avail_queryset(supplier_PID,queryset,keytype='zipcode'): storelist,input = data_prep(queryset,keytype) availdata = check_local_avail_listset(supplier_PID,input) return storelist,availdata