def canada(): if not g.user: return redirect("/home") country = 'US' #api is a canadian travel api and so doesnt have canadian advisories since that is their home country name = 'Canada' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def australia_newzealand(): if not g.user: return redirect("/home") country = 'AU' name = 'Australia & New Zealand' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def black_sea(): if not g.user: return redirect("/home") country = 'TR' #uses Turkey name = 'Black Sea' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def trinitobago(): if not g.user: return redirect("/home") country = 'TT' name = 'Trinidad & Tobago' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def uruguay(): if not g.user: return redirect("/") country = 'UY' name = 'Uruguay' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def chile(): if not g.user: return redirect("/home") country = 'CL' name = 'Chile' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def gulf_of_mexico(): if not g.user: return redirect("/home") country = 'US' name = 'Gulf of Mexico' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def north_sea(): if not g.user: return redirect("/home") country = 'GB' #uses england but could use norway name = 'North Sea' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def nw_africa_morocco(): if not g.user: return redirect("/home") country = 'MA' name = 'NW Africa / Morocco' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def arctic_ocean(): if not g.user: return redirect("/home") country = 'GL' # No real country code for arctic - uses greenland since thats the likely launching place name = 'Arctic Ocean' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def north_atlantic(): if not g.user: return redirect("/home") country = 'US' name = 'US East Coast (N. Atlantic Ocean)' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def mexico(): if not g.user: return redirect("/home") country = 'MX' name = 'Mexico (Pacific Ocean)' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def mediterranean(): if not g.user: return redirect("/home") country = 'EG' #uses egypt name = 'Mediterranean Sea' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def india_srilanka(): if not g.user: return redirect("/home") country = 'IN' name = 'India & Sri Lanka' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def caribbean(): if not g.user: return redirect("/home") country = 'BS' #uses Bahamas name = 'Caribbean' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def persian_gulf(): if not g.user: return redirect("/home") country = 'QA' #uses Qatar name = 'Persian Gulf' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def caspian_sea(): if not g.user: return redirect("/home") country = 'IR' #uses Iran name = 'Caspian Sea' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def skorea_japan(): if not g.user: return redirect("/home") country = 'JP' name = 'South Korea & Japan' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def falkland_islands(): if not g.user: return redirect("/home") country = 'FK' name = 'Falkland Islands' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)
def ghana(): if not g.user: return redirect("/home") country = 'GH' jobs = (Job.query.filter(Job.location == "Ghana").all()) name = 'Ghana' advisory = get_advisory(country) listofrates = get_list(name) data = zip(TITLES, listofrates) jobs = get_jobs(name) return render_template('/country.html', jobs=jobs, name=name, listofrates=listofrates, data=data, advisory=advisory)