inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

thisauto님의 게시글

thisauto thisauto

@thisauto1914

수강평 작성수
-
평균평점
-

게시글 1

질문&답변

아래처럼 {% if datas.count() > 0%} 문법오류

추가로 def lists(): board = mongo.db.board datas = board.find({}) datas의 count의 개수를 구하려고 합니다 MongoDB count() Method – db.Collection.count() 에서 처럼 roubo3T에서 db.getCollection('board').find({}).count() 하면 데이타레코드 갯수를 불러오는데 코딩으로 recordcount = board.find({}).count() 표현하면 오류가 발생하네요? AttributeError: 'Cursor' object has no attribute 'count' 다른방법은 없나요?

좋아요수
1
댓글수
3
조회수
679