engine/process.py
def append_poly_points(self, message, lat, long):
        """Append polygon longitude and latitude to the poly_points
           field of latest feature for a message/call sender"""
        if self.get_poly_points(message):
            concat = self.get_poly_points(message) + f",{long} {lat}"
            cursor.execute(
                f"update {self.db}features set poly_points = '{concat}' where id = (select max(id) from "
                f"{self.db}features where user_id = {message.from_user.id})")
            connection.commit()
        else:
            cursor.execute(f"update {self.db}features set poly_points = '{long} {lat}' where id = (select max(id) from "
                           f"{self.db}features where user_id = {message.from_user.id})")
            connection.commit()
Append polygon longitude and latitude to the poly_points
           field of latest feature for a message/call sender
Append polygon longitude and latitude to the poly_points
field of latest feature for a message/call sender
Append polygon longitude and latitude to the poly_points field of latest feature for a message / call sender
def append_poly_points(self, message, lat, long):
        if self.get_poly_points(message):
            concat = self.get_poly_points(message) + f",{long} {lat}"
            cursor.execute(
                f"update {self.db}features set poly_points = '{concat}' where id = (select max(id) from "
                f"{self.db}features where user_id = {message.from_user.id})")
            connection.commit()
        else:
            cursor.execute(f"update {self.db}features set poly_points = '{long} {lat}' where id = (select max(id) from "
                           f"{self.db}features where user_id = {message.from_user.id})")
            connection.commit()
def append_poly_points ( self , message , lat , long ) : if self . get_poly_points ( message ) : concat = self . get_poly_points ( message ) + f",{long} {lat}" cursor . execute ( f"update {self.db}features set poly_points = '{concat}' where id = (select max(id) from " f"{self.db}features where user_id = {message.from_user.id})" ) connection . commit ( ) else : cursor . execute ( f"update {self.db}features set poly_points = '{long} {lat}' where id = (select max(id) from " f"{self.db}features where user_id = {message.from_user.id})" ) connection . commit ( )
Append polygon longitude and latitude to the poly_points
field of latest feature for a message/call sender
Append polygon longitude and latitude to the poly_points field of latest feature for a message / call sender
"""Append polygon longitude and latitude to the poly_points
           field of latest feature for a message/call sender"""
self
message
lat
long