@staticmethod
    def update_last_seen(steam_ids):

        do_commit = False

        if type(steam_ids) == int:
            p = Db.find_player(steam_id=steam_ids)
            if p:
                p.last_seen = text('NOW()')
                DbCore.session.add(p)
                do_commit = True
        else:
            for steam_id in steam_ids:
                p = Db.find_player(steam_id=steam_id)
                if p:
                    p.last_seen = text('NOW()')
                    DbCore.session.add(p)
                    do_commit = True

        if do_commit is True:
            DbCore.commit()
            return True
        return False
Update last_seen column on a player
dataset/ETHPy150Open f4ble/pyarc/ark/database/helper.py/Db.update_last_seen