<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_projects(machine):
 """ Returns list of project ids """


    query = Project.active.all()
    return [x.pid for x in query]