mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 07:01:12 +00:00
[api]fix a bug
This commit is contained in:
@@ -284,9 +284,10 @@ class RepoDirPathView(ResponseMixin, View):
|
|||||||
|
|
||||||
old_oid = request.GET.get('oid', None)
|
old_oid = request.GET.get('oid', None)
|
||||||
if old_oid and old_oid == dir_id :
|
if old_oid and old_oid == dir_id :
|
||||||
response["oid"] = dir_id
|
response = HttpResponse(json.dumps("uptodate"), status=200,
|
||||||
return HttpResponse(json.dumps("uptodate"), status=200,
|
|
||||||
content_type=json_content_type)
|
content_type=json_content_type)
|
||||||
|
response["oid"] = dir_id
|
||||||
|
return response
|
||||||
else:
|
else:
|
||||||
return get_dir_entrys_by_id(request, dir_id)
|
return get_dir_entrys_by_id(request, dir_id)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user