Skip to content

Minor Edits - #81

Merged
sadrasabouri merged 4 commits into
devfrom
minor_edits
Nov 14, 2025
Merged

Minor Edits#81
sadrasabouri merged 4 commits into
devfrom
minor_edits

Conversation

@sepandhaghighi

@sepandhaghighi sepandhaghighi commented Nov 13, 2025

Copy link
Copy Markdown
Member

Reference Issues/PRs

What does this implement/fix? Explain your changes.

Any other comments?

@sepandhaghighi sepandhaghighi self-assigned this Nov 13, 2025
@sepandhaghighi sepandhaghighi added the bug Something isn't working label Nov 13, 2025
@sepandhaghighi sepandhaghighi added this to the ipspot v0.6 milestone Nov 13, 2025
@sepandhaghighi
sepandhaghighi marked this pull request as ready for review November 13, 2025 22:16
Comment thread ipspot/ipv4.py Outdated
try:
data = _get_json_force_ip(url="https://freeipapi.com/api/json", timeout=timeout, version="ipv4")
result = {"status": True, "data": {"ip": data["ipAddress"], "api": "freeipapi.com"}}
tzs = data.get("timeZones", [None])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can make the default value to [] instead of [None]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in 64aadd6

Comment thread ipspot/ipv6.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and also update here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in 64aadd6

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 72.76%. Comparing base (68f83dd) to head (64aadd6).

Files with missing lines Patch % Lines
ipspot/ipv6.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #81      +/-   ##
==========================================
+ Coverage   72.70%   72.76%   +0.06%     
==========================================
  Files           4        4              
  Lines         425      426       +1     
  Branches       44       44              
==========================================
+ Hits          309      310       +1     
  Misses         99       99              
  Partials       17       17              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sadrasabouri
sadrasabouri merged commit 9024114 into dev Nov 14, 2025
22 checks passed
@sadrasabouri
sadrasabouri deleted the minor_edits branch November 14, 2025 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants