fix
This commit is contained in:
parent
247ba5bd15
commit
71d9e5481c
|
@ -32,7 +32,7 @@ def index(uuid, snap):
|
||||||
matches = search(uuid, limit=1)
|
matches = search(uuid, limit=1)
|
||||||
if matches.size() > 0:
|
if matches.size() > 0:
|
||||||
return
|
return
|
||||||
except xapian.DatabaseNotFoundError:
|
except (xapian.DatabaseNotFoundError, xapian.DatabaseOpeningError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
database = xapian.WritableDatabase("db", xapian.DB_CREATE_OR_OPEN)
|
database = xapian.WritableDatabase("db", xapian.DB_CREATE_OR_OPEN)
|
||||||
|
|
6
reset.sh
6
reset.sh
|
@ -1,4 +1,4 @@
|
||||||
rm db/*
|
rm db/*
|
||||||
./manage.py migrate
|
python3 manage.py migrate
|
||||||
./manage.py add_user user@example.org 1234
|
python3 manage.py add_user user@example.org 1234
|
||||||
./manage.py up_snapshots example/snapshots/ user@example.org
|
python3 manage.py up_snapshots example/snapshots/ user@example.org
|
||||||
|
|
Loading…
Reference in New Issue