adjust test_case api

This commit is contained in:
zema1 2017-12-27 20:12:38 +08:00
parent 0a8cd6b541
commit 6faf824cd4

View File

@ -164,7 +164,7 @@ class TestCasePruneAPI(APIView):
# return an iterator # return an iterator
for d in os.scandir(settings.TEST_CASE_DIR): for d in os.scandir(settings.TEST_CASE_DIR):
if d.name in dir_to_be_removed: if d.name in dir_to_be_removed:
ret_data.append({"id": d.name, "create_time": d.stat().st_ctime}) ret_data.append({"id": d.name, "create_time": d.stat().st_mtime})
return self.success(ret_data) return self.success(ret_data)
@super_admin_required @super_admin_required