Skip to content

Commit

Permalink
Tweak JSON api return value to be friendlier
Browse files Browse the repository at this point in the history
  • Loading branch information
controversial committed May 9, 2016
1 parent e9369ff commit 07999d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/jsonstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('{}'))

0 comments on commit 07999d1

Please sign in to comment.