def mark_downloaded(*submissions):
 for submission in submissions:
  submission.downloaded = True
 db.db_session.commit()

def mark_downloaded ( * submissions ) : for submission in submissions : submission . downloaded = True db . db_session . commit ( )
mark *submissions* as downloaded in the database .