Merge pull request #3121 from urbit/mp/weather-denested

weather: don't double-nest json on-watch
This commit is contained in:
matildepark 2020-07-13 23:14:33 -04:00 committed by GitHub
commit 8ee618a197
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)]~