diff options
Diffstat (limited to 'app/backend')
-rw-r--r-- | app/backend/import_cals.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/backend/import_cals.py b/app/backend/import_cals.py index f0b5262..e4fe32e 100644 --- a/app/backend/import_cals.py +++ b/app/backend/import_cals.py @@ -5,6 +5,7 @@ import time import urllib2 import urlparse +from slugify import slugify from sqlalchemy import inspect from rcal.db import Session @@ -48,6 +49,7 @@ def update_calendar(cal, session): if inspect(db_cal).pending: print 'Adding calendar %s (%s)' % (cal['name'], cal['uid']) db_cal.name = cal['name'] + db_cal.custom_url = slugify(cal['name']) db_cal.url = cal['url'] db_cal.website = cal['website'] db_cal.category = Category.fetch(cal['category'], session) |