Commit db2d2e9e authored by sim's avatar sim

[REFACT] Get rid of unused ensure_dir function

parent ccfb0d3c
......@@ -9,13 +9,3 @@ def convert_to_date(date):
return datetime.datetime.timestamp(date)
return dateutil.parser.parse(date)
def ensure_dir(user):
If user is new, folder does not exist yet, create it then
dirpath = '%s/corpora/%s' % (MEDIA_ROOT, user.username)
if not os.path.exists(dirpath):
print("Creating folder %s" % dirpath)
Markdown is supported
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