mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-21 07:28:30 +03:00
Merge pull request #3121 from urbit/mp/weather-denested
weather: don't double-nest json on-watch
This commit is contained in:
commit
8ee618a197
@ -42,8 +42,10 @@
|
||||
?. ?=([%all ~] wire) (on-watch:def wire)
|
||||
=/ jon
|
||||
%- pairs:enjs:format
|
||||
:~ [%weather data]
|
||||
[%location s+location]
|
||||
:* ['location' s+location]
|
||||
::
|
||||
?. ?=([%o *] data) ~
|
||||
~(tap by p.data)
|
||||
==
|
||||
:_ this
|
||||
[%give %fact ~ %json !>(jon)]~
|
||||
|
Loading…
Reference in New Issue
Block a user