mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Split string only once
This commit is contained in:
parent
967540fe62
commit
c574e746dd
1 changed files with 2 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ create table property (
|
||||||
value text not null,
|
value text not null,
|
||||||
collection_path varchar(200) references collection (path),
|
collection_path varchar(200) references collection (path),
|
||||||
primary key (name, collection_path));
|
primary key (name, collection_path));
|
||||||
'''
|
'''.split(';')
|
||||||
|
|
||||||
storage_backend = os.environ.get('RADICALE_BACKEND', '') or 'filesystem'
|
storage_backend = os.environ.get('RADICALE_BACKEND', '') or 'filesystem'
|
||||||
|
|
||||||
|
|
@ -78,7 +78,7 @@ def do_the_radicale_dance(tmpdir):
|
||||||
from radicale.storage import database
|
from radicale.storage import database
|
||||||
|
|
||||||
s = database.Session()
|
s = database.Session()
|
||||||
for line in RADICALE_SCHEMA.split(';'):
|
for line in RADICALE_SCHEMA:
|
||||||
s.execute(line)
|
s.execute(line)
|
||||||
s.commit()
|
s.commit()
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue