Finished admin console
This commit is contained in:
@@ -18,7 +18,8 @@ def check_is_json(file):
|
||||
def validate_json(file):
|
||||
file.stream.seek(0)
|
||||
data = json.loads(file.read())
|
||||
if not type(data) is list: return False
|
||||
if not isinstance(data, list): return False
|
||||
return True
|
||||
|
||||
def randomise_list(list:list):
|
||||
_list = list.copy()
|
||||
|
Reference in New Issue
Block a user