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('{}'))