def adminReviewFeedback(): try: feedbackVO = FeedbackVO() feedbackDAO = FeedbackDAO() feedbackId = request.args.get("feedbackId") feedbackTo_LoginId = session['session_loginId'] feedbackVO.feedbackId = feedbackId feedbackVO.feedbackTo_LoginId = feedbackTo_LoginId feedbackDAO.adminReviewFeedback(feedbackVO) return redirect(url_for('adminViewFeedback')) except Exception as ex: print(ex)
def adminReviewFeedback(): try: if adminLoginSession() == 'admin': feedbackDAO = FeedbackDAO() feedbackVO = FeedbackVO() feedbackId = request.args.get('feedbackId') feedbackTo_LoginId = session['session_loginId'] feedbackVO.feedbackId = feedbackId feedbackVO.feedbackTo_LoginId = feedbackTo_LoginId feedbackDAO.adminReviewFeedback(feedbackVO) return redirect(url_for('adminViewFeedback')) else: return adminLogoutSession() except Exception as ex: print(ex)