Commit ff1ca8d2 authored by Okhin's avatar Okhin
Browse files

Getting a better kind detector

parent 8022545a
Pipeline #1193 failed with stages
in 46 seconds
......@@ -31,7 +31,7 @@ class Importer(models.Model):
def kind(self):
if self.url is None and is None:
return None
if self.url is not '':
if self.url is '':
return 'url'
return 'file'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment