Browse Source

crontab: health score

Yi 1 week ago
parent
commit
1d184a8f87
2 changed files with 2 additions and 1 deletions
  1. 1 1
      .drone.yml
  2. 1 0
      module/crontab/neck_ring_health.go

+ 1 - 1
.drone.yml

@@ -9,7 +9,7 @@ steps:
   - name: clone
     image: alpine/git
     commands:
-      - git clone -b feature/event http://192.168.1.8:3000/xuyiping/kpt-pasture.git
+      - git clone -b ${DRONE_COMMIT_BRANCH} http://192.168.1.8:3000/xuyiping/kpt-pasture.git
       - cp -R kpt-pasture/* ./
   - name: build
     image: plugins/docker:20.14.2

+ 1 - 0
module/crontab/neck_ring_health.go

@@ -107,6 +107,7 @@ func calculateNewScore(data *model.NeckRingHealth) int32 {
 	if data.IsImmunization == pasturePb.IsShow_Ok {
 		otherScore += 12
 	}
+
 	return data.Score + otherScore
 }