def myshifts(request): username = str(request.user) air_crew = AirCrew() my_shifts = air_crew.ShowMyShifts(username) future_shifts = air_crew.ShowFutureShifts(username) args = {'my_shifts' : my_shifts, 'future_shifts': future_shifts} return render(request, 'base/myshifts1.html', args)
def airgoalsinfo(request): air_crew = AirCrew() username = request.GET.get('personal_num') usernamequery = (str(username),) name = air_crew.getname(usernamequery) air_info = air_crew.ShowMyShifts(username) args = {'air_info' : air_info, 'name':name} return render(request, 'base/airgoalinfo1.html', args)