mast/queries.py
def save_new_user_activities(self, user_id: int, activity: Activity):
        """
        Saves new activity by user.
        :param user_id: ID of user.
        :param activity: New activity to be saved.
        """
        activity.user_id = user_id
        db.session.add(activity)
        db.session.commit()

        Saves new activity by user.
        :param user_id: ID of user.
        :param activity: New activity to be saved.
        
Saves new activity by user.
Saves new activity by user .
def save_new_user_activities(self, user_id: int, activity: Activity):
        activity.user_id = user_id
        db.session.add(activity)
        db.session.commit()
def save_new_user_activities ( self , user_id : int , activity : Activity ) : activity . user_id = user_id db . session . add ( activity ) db . session . commit ( )
Saves new activity by user.
Saves new activity by user .
"""
        Saves new activity by user.
        :param user_id: ID of user.
        :param activity: New activity to be saved.
        """
self
user_id
int
ID of user.
ID of user .
activity
Activity
New activity to be saved.
New activity to be saved .