Skip to content

Commit

Permalink
handle sqlalchemy query.get deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
raylu committed May 5, 2024
1 parent b4bee86 commit 2d31971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddd.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def root(request):
return Response.render(request, 'index.html', {'guilds': guilds})

def guild_page(request, guild_id):
guild = Session().query(Guilds).get(int(guild_id))
guild = Session().get(Guilds, int(guild_id))
return Response.render(request, 'guild.html', {'guild': guild})

def channel_user_month_list(request, guild_id):
Expand Down

0 comments on commit 2d31971

Please sign in to comment.