1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-22 20:08:19 +00:00

[online GC] modified it.

This commit is contained in:
llj
2014-10-15 14:49:40 +08:00
parent af0c749a37
commit b3852c5f82
3 changed files with 3 additions and 23 deletions

View File

@@ -1849,15 +1849,6 @@ def repo_online_gc(request, repo_id):
return HttpResponse(json.dumps({'error': error}), status=400,
content_type=content_type)
use_sqlite = False
db_backend = settings.DATABASES['default']['ENGINE'].split('.')[-1]
if 'sqlite' in db_backend:
use_sqlite = True
if use_sqlite:
error = _('It is not supported for SQLite')
return HttpResponse(json.dumps({'error': error}), status=400,
content_type=content_type)
try:
seafile_api.clean_up_repo_history(repo.id, day)
except SearpcError, e: