ce7673257d0e45ee25abdf6d1a60284b01baf9e3,doudizhu/apps/account/views.py,LoginHandler,post,#LoginHandler#,22

Before Change


                "INSERT INTO account (openid, username, sex, avatar) VALUES (%s,%s,%s,%s)", username, username, 1, "")
            account = {"id": uid, "username": username}

        uid, username = account.get("id"), account.get("username")
        self.set_secure_cookie("user", json_encode({"uid": uid, "username": username}))
        self.write({
            "uid": uid,
            "username": username,

After Change


                "INSERT INTO account (openid, username, sex, avatar) VALUES (%s,%s,%s,%s)", username, username, 1, "")
            account = {"id": uid, "username": username, "avatar": ""}

        self.set_secure_cookie("user", json_encode(account))
        self.write({
            **account,
            "room": Storage.find_player_room_id(account["uid"]),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: mailgyc/doudizhu
Commit Name: ce7673257d0e45ee25abdf6d1a60284b01baf9e3
Time: 2020-03-17
Author: 4143964+mailgyc@users.noreply.github.com
File Name: doudizhu/apps/account/views.py
Class Name: LoginHandler
Method Name: post


Project Name: mailgyc/doudizhu
Commit Name: 339ee5d8f906bb4e23302f0ad1f066f0ea03deaf
Time: 2020-03-17
Author: 4143964+mailgyc@users.noreply.github.com
File Name: doudizhu/apps/account/views.py
Class Name: UserInfoHandler
Method Name: get


Project Name: mailgyc/doudizhu
Commit Name: 001177e85fe09a3a2fd4c30600a42b92902b3d43
Time: 2019-09-30
Author: gaoyc@outlook.com
File Name: doudizhu/apps/account/views.py
Class Name: LoginHandler
Method Name: post