Explorar o código

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

잉여개발기 (SPDV) %!s(int64=2) %!d(string=hai) anos
pai
achega
ede4517d2b
Modificáronse 2 ficheiros con 6 adicións e 5 borrados
  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