summaryrefslogtreecommitdiff
path: root/app/python/generate_cal_urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/python/generate_cal_urls.py')
-rw-r--r--app/python/generate_cal_urls.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/app/python/generate_cal_urls.py b/app/python/generate_cal_urls.py
deleted file mode 100644
index a79f9d0..0000000
--- a/app/python/generate_cal_urls.py
+++ /dev/null
@@ -1,17 +0,0 @@
-from slugify import slugify
-
-from rcal.db import Session
-from rcal.model import Calendar
-
-
-def main():
- session = Session.create()
- for calendar in session.query(Calendar).all():
- calendar.custom_url = slugify(
- calendar.custom_name
- if calendar.custom_name
- else calendar.name)
- session.commit()
-
-if __name__ == '__main__':
- main()