잉여개발기 (SPDV) 3 лет назад
Родитель
Сommit
4c50fec363
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app.py

+ 2 - 2
app.py

@@ -647,12 +647,12 @@ def main_easter_egg_go():
     with get_db_connect() as conn:
         print(platform.machine())
         if platform.system() == 'Linux':
-            if platform.machine() == 'AMD64':
+            if platform.machine() in ["AMD64", "x86_64"]:
                 data = os.popen(os.path.join(".", "route_go", "main_easter_egg.amd64.bin")).read()
             else:
                 data = os.popen(os.path.join(".", "route_go", "main_easter_egg.arm64.bin")).read()
         else:
-            if platform.machine() == 'AMD64':
+            if platform.machine() in ["AMD64", "x86_64"]:
                 data = os.popen(os.path.join(".", "route_go", "main_easter_egg.amd64.exe")).read()
             else:
                 data = os.popen(os.path.join(".", "route_go", "main_easter_egg.arm64.exe")).read()