aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-03-27 00:15:33 +0800
committertypebrook <typebrook@gmail.com>2020-03-27 00:16:08 +0800
commit21a642ea94c094ff69429e5634197882eac81d3a (patch)
treea0fb54abcb43ab9269a4ea44fa464c364791e817
parentba127ee1c74204f3b051432e0a6fed4cb4b2288d (diff)
Prevent language contains space
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index 92c0484..d65289b 100755
--- a/gist
+++ b/gist
@@ -351,7 +351,7 @@ for gist in raw:
351 print(gist["html_url"], end=" ") 351 print(gist["html_url"], end=" ")
352 print(gist["public"], end=" ") 352 print(gist["public"], end=" ")
353 print(",".join(file["raw_url"] for file in gist["files"].values()), end=" ") 353 print(",".join(file["raw_url"] for file in gist["files"].values()), end=" ")
354 print(",".join(file["filename"] + "@" + str(file["language"]) for file in gist["files"].values()), end=" ") 354 print(",".join(file["filename"] + "@" + str(file["language"]).replace(" ", "-") for file in gist["files"].values()), end=" ")
355 print(len(gist["files"]), end=" ") 355 print(len(gist["files"]), end=" ")
356 print(gist["comments"], end=" ") 356 print(gist["comments"], end=" ")
357 print(gist["owner"]["login"], end=" ") 357 print(gist["owner"]["login"], end=" ")