diff sat_frontends/jp/cmd_blog.py @ 2876:84f82d014d06

jp (blog/set): fixed use of --item argument
author Goffi <goffi@goffi.org>
date Mon, 25 Mar 2019 18:40:10 +0100
parents 2f39682f6d40
children b2f323237fce
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_blog.py	Mon Mar 25 18:40:08 2019 +0100
+++ b/sat_frontends/jp/cmd_blog.py	Mon Mar 25 18:40:10 2019 +0100
@@ -183,6 +183,8 @@
         self.pubsub_item = self.args.item
         mb_data = {}
         self.setMbDataFromArgs(mb_data)
+        if self.pubsub_item is not None:
+            mb_data["id"] = self.pubsub_item
         content = codecs.getreader("utf-8")(sys.stdin).read()
         self.setMbDataContent(content, mb_data)