Structs don't implement the Access behaviour, so packet[:received_at] doesn't work. Use pattern matching to handle Aprsme.Packet structs separately with dot notation, and use Map.get for regular maps. This fixes the UndefinedFunctionError when rendering tracked callsign information with Packet structs from the database. |
||
|---|---|---|
| .. | ||
| aprsme | ||
| aprsme_web | ||
| aprs_web.ex | ||
| aprsme.ex | ||