コード例 #1
0
ファイル: tasks.py プロジェクト: huzichunjohn/PyCon2012_Talk
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()
コード例 #2
0
ファイル: tasks.py プロジェクト: huzichunjohn/PyCon2012_Talk
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()
コード例 #3
0
ファイル: tasks.py プロジェクト: huzichunjohn/PyCon2012_Talk
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()