Browse Source

reformat

master
Dashie der otter 10 months ago
parent
commit
cb29f687f3
Signed by: dashie <rhaamo@leloop.org> GPG Key ID: C2D57B325840B755
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      backend/lib/pyairwaves/redis_eater.ex

+ 3
- 1
backend/lib/pyairwaves/redis_eater.ex View File

@@ -29,7 +29,8 @@ defmodule Pyairwaves.RedisEater do
case Jason.decode(message) do
{:ok, msg} ->
# TODO: Broadcast only if lat and lon are available
if msg["lat"] >= 91.0 or msg["lat"] <= -91.0 or msg["lon"] >= 181.0 or msg["lon"] <= -181.0 do
if msg["lat"] >= 91.0 or msg["lat"] <= -91.0 or msg["lon"] >= 181.0 or
msg["lon"] <= -181.0 do
# bogus datas if anything not in -90/90 or -180/180
{:noreply, state, :hibernate}
else
@@ -68,6 +69,7 @@ defmodule Pyairwaves.RedisEater do
bearing: bearing,
distance: distance
}

# IO.inspect(coverage)
# IO.inspect(msg)



Loading…
Cancel
Save