From abc10a1203c5957e6a90bacb7de4286812d3da9e Mon Sep 17 00:00:00 2001 From: terrtia Date: Thu, 9 Nov 2023 14:25:29 +0100 Subject: [PATCH] fix: [doc] simplify ail feeder --- doc/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/README.md b/doc/README.md index aee47955..bd891289 100644 --- a/doc/README.md +++ b/doc/README.md @@ -201,14 +201,14 @@ pyail = PyAIL(URL, API_KEY, ssl=verifycert) #. . . imports #. . . setup code -for content in sys.stdin: - elm = json.loads(content) - tmp = elm['body'] +for elem in sys.stdin: + elm = json.loads(elem) + content = elm['body'] meta = {} meta['jabber:to'] = elm['to'] meta['jabber:from'] = elm['from'] meta['jabber:ts]' = elm['ts'] - pyail.feed_json_item(tmp , meta, feeder_name, feeder_uuid) + pyail.feed_json_item(content , meta, feeder_name, feeder_uuid) ``` # AIL SYNC