def fillOnlineUserModel(): onlnum = stat.getNumofOnlineUser() n_day = stat.getDay() n_month = stat.getMonth() n_year = stat.getYear() n_week = stat.getWeek(n_day, n_month, n_year) onlinUsrObj = OnlineUser(no_of_online_user=onlnum, day=n_day, month=n_month, year=n_year, week=n_week) onlinUsrObj.save()
def fillStatBidModel(): numbid = stat.getNumofBid() n_day = stat.getDay() n_month = stat.getMonth() n_year = stat.getYear() n_week = stat.getWeek(n_day, n_month, n_year) bidObj = StatBid(no_of_bids=numbid, day=n_day, month=n_month, year=n_year, week=n_week) bidObj.save()
def fillRegisterUserModel(): regnum = stat.getNumofRegisteredUser() n_day = stat.getDay() n_month = stat.getMonth() n_year = stat.getYear() n_week = stat.getWeek(n_day, n_month, n_year) regUsrObj = RegisteredUser(no_of_reg_user=regnum, day=n_day, month=n_month, year=n_year, week=n_week) regUsrObj.save()