Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed Feb 19, 2024
1 parent 232ba0d commit d5ccfbc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions states/photo_report_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@

from config import PHOTO_REPORT_COLLECTION
from models.photo_report import PhotoReport
from states.photo_state import get_photo_state
from states.photo_state import PhotoState
from utils import as_dict


class PhotoReportState:
@staticmethod
@trace
async def report_by_photo_id(photo_id: str) -> bool:
photo_state = get_photo_state()
photo_info = await photo_state.get_photo_by_id(photo_id)
photo_info = await PhotoState.get_photo_by_id(photo_id)

if photo_info is None:
return False # photo not found
Expand Down

0 comments on commit d5ccfbc

Please sign in to comment.