mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-29 16:41:56 +00:00
adjust test_case api
This commit is contained in:
parent
0a8cd6b541
commit
6faf824cd4
@ -164,7 +164,7 @@ class TestCasePruneAPI(APIView):
|
||||
# return an iterator
|
||||
for d in os.scandir(settings.TEST_CASE_DIR):
|
||||
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)
|
||||
|
||||
@super_admin_required
|
||||
|
Loading…
Reference in New Issue
Block a user