Skip to content

Commit b341b1b

Browse files
committed
break circular dependency in discord
1 parent 70c22ac commit b341b1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

appstore/discord.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from .settings import config
66
from .utils import get_app_description, generate_image_url, who_am_i
7-
from .discourse import get_topic_url_for_app
7+
import appstore # break the circular dependency to import get_topic_url_for_app from discourse
88

99
party_time_emoji = ["🎉","🥳","👏","❤️","🥰","🎊"]
1010

@@ -25,7 +25,7 @@ def announce_release(app, release, is_generated):
2525
"value": release_notes
2626
}]
2727

28-
topic_url = get_topic_url_for_app(app)
28+
topic_url = appstore.discourse.get_topic_url_for_app(app)
2929
if topic_url:
3030
request_fields.append({
3131
"name": "Discuss it on the Rebble Dev Forum!",
@@ -86,7 +86,7 @@ def announce_new_app(app, is_generated):
8686
"value": app.website
8787
})
8888

89-
topic_url = get_topic_url_for_app(app)
89+
topic_url = appstore.discourse.get_topic_url_for_app(app)
9090
if topic_url:
9191
request_fields.append({
9292
"name": "Discuss it on the Rebble Dev Forum!",

0 commit comments

Comments
 (0)