Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Commit

Permalink
generate buPin
Browse files Browse the repository at this point in the history
  • Loading branch information
FengLi666 committed Oct 22, 2018
1 parent 36dea0e commit dc2d723
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mysports/no_free_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,16 @@ def no_free_run(userid: str, ses, dis: float = 2, start_point=gps_point(30.87952
speed = "%s'%s''"%(speed//60,speed - speed//60 * 60)
startTime = (datetime.now() - timedelta(seconds=duration)).strftime("%Y-%m-%d %H:%M:%S")

# peisu = 1000 / (bupin * bufu)
bupin = random.uniform(120, 140)


x['real'] = str(dis*1000)
x['duration'] = str(duration)
x['speed'] = speed
x['track'] = path
x['startTime'] = startTime
x['buPin'] = '%.1f'%bupin

xs = json.dumps(x)

Expand Down

0 comments on commit dc2d723

Please sign in to comment.