fix
This commit is contained in:
parent
972c97aa23
commit
e4877d18b0
@ -196,7 +196,8 @@ format_event(LocationCode, DynamicLocationCode, EventType, #{<<"event_code">> :=
|
|||||||
true ->
|
true ->
|
||||||
Len = length(FakeLocationCodes),
|
Len = length(FakeLocationCodes),
|
||||||
RandomIndex = rand:uniform(Len),
|
RandomIndex = rand:uniform(Len),
|
||||||
lists:nth(RandomIndex, FakeLocationCodes);
|
Code = lists:nth(RandomIndex, FakeLocationCodes),
|
||||||
|
list_to_binary(Code);
|
||||||
false ->
|
false ->
|
||||||
LocationCode
|
LocationCode
|
||||||
end,
|
end,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user