Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasha Hart authored and sarasafavi committed Sep 23, 2016
1 parent 2db4be2 commit ac5fe5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osgeo_importer/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def filesize(self):
"""Humanizes the upload file size.
"""
size = 0
if not self.size or self.size == 0:
if not self.size:
if self.uploadfile_set.count() > 0:
for uploadfile in self.uploadfile_set.all():
size += uploadfile.file.size
Expand Down

0 comments on commit ac5fe5f

Please sign in to comment.