Browse Source

Fix Notification factory return type & import layout.

merge-requests/21/head
James Southern 7 years ago
parent
commit
e5bdd0fb16
  1. 2
      tildes/tildes/models/comment/comment_notification.py
  2. 2
      tildes/tildes/resources/comment.py

2
tildes/tildes/models/comment/comment_notification.py

@ -1,8 +1,8 @@
"""Contains the CommentNotification class.""" """Contains the CommentNotification class."""
from datetime import datetime from datetime import datetime
from typing import Any, Sequence, Tuple from typing import Any, Sequence, Tuple
from pyramid.security import Allow, DENY_ALL from pyramid.security import Allow, DENY_ALL
from sqlalchemy import Boolean, Column, ForeignKey, Integer, TIMESTAMP from sqlalchemy import Boolean, Column, ForeignKey, Integer, TIMESTAMP
from sqlalchemy.dialects.postgresql import ENUM from sqlalchemy.dialects.postgresql import ENUM

2
tildes/tildes/resources/comment.py

@ -29,7 +29,7 @@ def comment_by_id36(request: Request, comment_id36: str) -> Comment:
def notification_by_comment_id36( def notification_by_comment_id36(
request: Request, request: Request,
comment_id36: str comment_id36: str
) -> Comment:
) -> CommentNotification:
"""Get a comment notification specified by {comment_id36} in the route. """Get a comment notification specified by {comment_id36} in the route.
Looks up a comment notification from the request user and a {comment_id36} Looks up a comment notification from the request user and a {comment_id36}

Loading…
Cancel
Save