diff options
Diffstat (limited to 'bn_django')
-rw-r--r-- | bn_django/git_wiki/models.py | 3 | ||||
-rw-r--r-- | bn_django/git_wiki/views.py | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bn_django/git_wiki/models.py b/bn_django/git_wiki/models.py index ba133b6..f320984 100644 --- a/bn_django/git_wiki/models.py +++ b/bn_django/git_wiki/models.py @@ -97,7 +97,8 @@ class Item(models.Model): self.contents = commands.getoutput(GITPREFIX + ' cat-file -p ' \ + self.id) self.size = commands.getoutput(GITPREFIX + ' cat-file -s ' + self.id) - self.save() + if not self.isfig(): + self.save() def getfile(self): import commands diff --git a/bn_django/git_wiki/views.py b/bn_django/git_wiki/views.py index 1cad5be..2bfc034 100644 --- a/bn_django/git_wiki/views.py +++ b/bn_django/git_wiki/views.py @@ -163,7 +163,6 @@ def figure(request, reqslug, blob=None, download=False): r['Content-Disposition'] = 'filename=%s' % reqslug f = i.getfile() t = f.readlines() - print "hello!" r.write(i.contents) return r |