Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed mongo connect error #2760

Merged
merged 1 commit into from
Aug 30, 2024
Merged

fixed mongo connect error #2760

merged 1 commit into from
Aug 30, 2024

Conversation

quanbisen
Copy link
Collaborator

修复因升级pymongo4.x导致的mongo连接报错

'Collection' object is not callable. If you meant to call the 'insert_one' method on a 'Collection' object it is failing because no such method exists.

参见pymongo4.x官方文档
image

Copy link

codecov bot commented Aug 16, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 78.08%. Comparing base (8996542) to head (a6fa12e).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
sql/engines/mongo.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2760   +/-   ##
=======================================
  Coverage   78.08%   78.08%           
=======================================
  Files         122      122           
  Lines       17311    17311           
=======================================
  Hits        13518    13518           
  Misses       3793     3793           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LeoQuote
Copy link
Collaborator

谢谢贡献, 但本 pr 和 #2747 重复, 能否帮忙增加覆盖率? 覆盖率达标方便合并

@hhyo hhyo merged commit 083e841 into hhyo:master Aug 30, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants