Jelajahi Sumber

이건 어떨까

ect (or 2du) 8 tahun lalu
induk
melakukan
1b728e7be5
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      app.py

+ 3 - 2
app.py

@@ -1072,8 +1072,9 @@ def update():
     if platform.system() == 'Linux':
         print('Update')
 
-        os.system('git remote add upstream  https://github.com/2DU/openNAMU.git')
-        ok = os.system('git pull upstream ' + up_data)
+        os.system('git remote rm origin')
+        os.system('git remote add origin https://github.com/2DU/openNAMU.git')
+        ok = os.system('git pull origin ' + up_data)
         if ok == 0:
             return redirect('/re_start')
         else: