File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -258,8 +258,20 @@ async def show_projects(update, context):
258258async def show_my_projects (update , context ):
259259 """Let people see what projects they have voted for"""
260260
261- user = Pycampista .get (Pycampista .username == update .message .from_user .username )
262- votes = Vote .select (Project , Slot ).join (Project ).join (Slot ).where ((Vote .pycampista == user ) & Vote .interest ).order_by (Slot .code )
261+ user = Pycampista .get (
262+ Pycampista .username == update .message .from_user .username ,
263+ )
264+ votes = (
265+ Vote
266+ .select (Project , Slot )
267+ .join (Project )
268+ .join (Slot )
269+ .where (
270+ (Vote .pycampista == user ) &
271+ Vote .interest
272+ )
273+ .order_by (Slot .code )
274+ )
263275
264276 if votes :
265277 text_chunks = []
You can’t perform that action at this time.
0 commit comments