Exclude invalid gps datetimes
This commit is contained in:
parent
bda17d8ec9
commit
a4286d6e9b
|
|
@ -30,7 +30,7 @@ geodesic = Geod(ellps='WGS84')
|
|||
current_datetime = datetime.utcnow()
|
||||
date_yesterday = current_datetime - timedelta(days=1)
|
||||
date_tomorrow = current_datetime + timedelta(days=1)
|
||||
valid_date = True
|
||||
|
||||
|
||||
@app.route('/')
|
||||
def hello():
|
||||
|
|
@ -46,6 +46,8 @@ def getGpsDistance():
|
|||
lat = dm(lat) if lat and len(lat) > 1 else 0.0
|
||||
long = dm(long) if long and len(long) > 1 else 0.0
|
||||
|
||||
valid_date = True
|
||||
|
||||
print(request.args)
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user