Permalink
Browse files

Add json extension to entry files

  • Loading branch information...
1 parent 6ef937d commit b25ecd9254ccfc8de9e8fb68887f9c4f1ec5d36f mapc committed Jul 12, 2012
Showing with 2 additions and 3 deletions.
  1. +1 −1 browser.coffee
  2. +1 −2 db.coffee
View
@@ -30,7 +30,7 @@ class PinkDB
@f_data = @f_loc + "/data/"
get: (k, f) ->
- $.getJSON @f_entries + "/" + k, f
+ $.getJSON @f_entries + "/" + k + ".json", f
data: (k, f) ->
$.load @f_data + "/" + k, f
View
@@ -42,8 +42,7 @@ class PinkDB
catch er
@b_ind[k] = 0
- f = path.join @f_entries, k
-
+ f = path.join @f_entries, k + ".json"
fs2.providedir f
fs.writeFileSync f, (util.format '%j', v)

0 comments on commit b25ecd9

Please sign in to comment.