Przeglądaj źródła

https://github.com/openNAMU/openNAMU/issues/1697

잉여개발기 (SPDV) 2 lat temu
rodzic
commit
56f526e718
2 zmienionych plików z 6 dodań i 5 usunięć
  1. 1 5
      route/tool/func.py
  2. 5 0
      ubuntu.sh

+ 1 - 5
route/tool/func.py

@@ -691,11 +691,7 @@ def get_default_robots_txt():
     return data
 
 def load_random_key(long = 128):
-    return ''.join(
-        random.choice(
-            "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
-        ) for i in range(long)
-    )
+    return ''.join(random.choice("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") for _ in range(long))
 
 def http_warning():
     return '''

+ 5 - 0
ubuntu.sh

@@ -0,0 +1,5 @@
+apt-get install python3
+apt-get install python3-pip
+
+pip3 install -r requirements.txt
+python3 app.py