|
@@ -6,7 +6,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -95,7 +95,7 @@ def get_read_count(id):
|
|
|
|
|
|
|
|
|
def is_collected(topicId):
|
|
|
- from maple.topic.models import CollectTopic
|
|
|
+ from api.topic.models import CollectTopic
|
|
|
from flask_login import current_user
|
|
|
for collect in current_user.collects:
|
|
|
cid = CollectTopic.query.filter_by(
|
|
@@ -106,7 +106,7 @@ def is_collected(topicId):
|
|
|
|
|
|
|
|
|
def notice_count():
|
|
|
- from maple.forums.models import Notice
|
|
|
+ from api.forums.models import Notice
|
|
|
if g.user.is_authenticated:
|
|
|
count = Notice.query.filter_by(
|
|
|
rece_id=g.user.id, is_read=False).count()
|