Explorar o código

FIX:游戏列表去重

cxyu %!s(int64=3) %!d(string=hai) anos
pai
achega
cf204fbab5
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      handlers/OrderHandler.py

+ 2 - 1
handlers/OrderHandler.py

@@ -16,7 +16,8 @@ class OrderInfoGame(BaseHandler):
         else:
             db = MysqlUtils()
             sql = f'''
-            select id,name from db_mp.h_game
+            select min(id),name from db_mp.h_game
+            group by name
             '''
             data = db.quchen_text.getData_json(sql)
             self.write_json(data=data)