поделал сайт, сделал orm-модели, requirements.txt
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import os
|
||||
from typing import List, Tuple
|
||||
|
||||
|
||||
def get_logs() -> List[Tuple[int, str]]:
|
||||
return [(int(os.path.basename(dir_path)), dir_path.split("/")[2].strip())
|
||||
for dir_path, _, filenames in os.walk("static/logs")
|
||||
if dir_path != "static/logs" and len(dir_path.split("/")) == 3]
|
||||
Reference in New Issue
Block a user