Removed scripts folder

This commit is contained in:
Felipe Martin 2020-12-06 14:00:32 +01:00
parent 644d4d0e57
commit 14eebf3c6d
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
1 changed files with 0 additions and 21 deletions

View File

@ -1,21 +0,0 @@
# -*- coding: utf-8 -*-
"""
Script to perform the migration from the old blog database
to the lektor file format.
"""
import os.path
import dataset
SQLITE = os.path.expanduser('~/NextCloud/Backups/blog/v2/database.sqlite')
LEKTOR = os.path.expanduser('~/Developer/fmartingr-lektor/content')
db = dataset.connect('sqlite:///' + SQLITE)
posts = db['blog_entry']
projects = db['projects_project']
project_images = lambda x: db['projects_projectimage'].filter(project_id=x)
get_project_group = lambda x: db['projects_group'].filter(id=x)