Skip to content

Commit

Permalink
# 2021.4.2 周洋涛
Browse files Browse the repository at this point in the history
1、对outputFusion.py中热门和高评分课程新需求功能进行测试
2、globalConst.py中接口课程信息查询语句进行修改
  • Loading branch information
zyt-919 committed Apr 2, 2021
1 parent 75c85b6 commit a95cf22
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
5 changes: 3 additions & 2 deletions OutputFusion/outputFusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,6 @@ def fusion(y):

popular_course = list(popular_course_demo)
high_score_course = list(high_score_course_demo)
print(popular_course)

# popular_course = popular_courses()
# high_score_course = high_score_courses()

Expand Down Expand Up @@ -483,3 +481,6 @@ def highscore_cache(highscore_list):
print(e)
finally:
del con

# high_score_courses()
# popular_courses()
26 changes: 13 additions & 13 deletions globalConst.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,28 @@ def getEnumValue(enum_type):


# ----------------- 数据库配置 ---------------------
DataBaseInfo = {
"address": "39.100.100.198",
"username": "root",
"passwd": "ASElab905",
"basename": "learningrecommend"
}

# DataBaseInfo = {
# "address": "101.133.194.114",
# "username": "train_rs",
# "passwd": "Trs123!@#",
# "basename": "train_recommended_sys"
# "address": "39.100.100.198",
# "username": "root",
# "passwd": "ASElab905",
# "basename": "learningrecommend"
# }

DataBaseInfo = {
"address": "101.133.194.114",
"username": "train_rs",
"passwd": "Trs123!@#",
"basename": "train_recommended_sys"
}

DataBaseQuery = {
"course_dr": "select * from course_dr5000",
"course_info": "select id, name, classify_id from course5000",
"user_id": "select id from account5000",
"user_course": "select account_id, course_id, click_times, score from account_course5000",
"user_course_changed": "select account_id, course_id, click_times, score from account_course5000",
"interface_video": "select id, name, image, description from course5000",
"interface_image": "select id, name, image, description from course5000",
"interface_video": "select id, name, image, description from course",
"interface_image": "select id, name, image, description from course",
"classify_info": "select id, course_name, classify_name, classify_id from course_classify5000",
"online_course_dr_changed": "select * from course_dr5000_changed",
"online_select_differ": "select classify_id from course_classify5000 where id = '{0}'",
Expand Down

0 comments on commit a95cf22

Please sign in to comment.