Skip to content

Commit

Permalink
✔ Minor fix - revert to cached method
Browse files Browse the repository at this point in the history
  • Loading branch information
weibeu committed Oct 7, 2020
1 parent 0138a82 commit 7420a41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

from flask import Flask, redirect, url_for
from flask_discord import DiscordOAuth2Session, requires_authorization, models
from flask_discord import DiscordOAuth2Session, requires_authorization


app = Flask(__name__)
Expand Down Expand Up @@ -85,7 +85,7 @@ def me():

@app.route("/me/guilds/")
def user_guilds():
guilds = models.Guild.fetch_from_api(cache=False)
guilds = discord.fetch_guilds()
return "<br />".join([f"[ADMIN] {g.name}" if g.permissions.administrator else g.name for g in guilds])


Expand Down

0 comments on commit 7420a41

Please sign in to comment.