From 07999d1f24acbbfde50fe94897054e7c8df7fea1 Mon Sep 17 00:00:00 2001 From: The-Penultimate-Defenestrator Date: Sun, 8 May 2016 21:16:31 -0400 Subject: [PATCH] Tweak JSON api return value to be friendlier --- api/jsonstore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/jsonstore.py b/api/jsonstore.py index 67d71ae..5af20c6 100644 --- a/api/jsonstore.py +++ b/api/jsonstore.py @@ -13,7 +13,7 @@ def store(data, directory="/var/www/luke/wikipedia/graphs/"): with open(tf, "w") as f: f.write(data) - return tf + return os.path.split(tf)[1] if __name__ == "__main__": print(store('{}'))