更新 app/utils/calculation_engine/cultural_value_b2/sub_formulas/living_heritage_b21.py
This commit is contained in:
parent
4d81edac4c
commit
3b661482be
@ -1,4 +1,3 @@
|
||||
|
||||
"""
|
||||
活态传承系数B21计算模块
|
||||
|
||||
@ -111,9 +110,15 @@ class LivingHeritageB21Calculator:
|
||||
teaching_frequency = offline_score + online_score
|
||||
|
||||
return teaching_frequency
|
||||
def cross_border_depth_dict(border_depth: str) -> float:
|
||||
cross_border_depth_scores = {
|
||||
"品牌联名": 0.3,
|
||||
"科技载体": 0.5,
|
||||
"国家外交礼品": 1,
|
||||
}
|
||||
return cross_border_depth_scores.get(border_depth, 0.3)
|
||||
|
||||
|
||||
|
||||
# 示例使用
|
||||
if __name__ == "__main__":
|
||||
calculator = LivingHeritageB21Calculator()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user