ondrej1024 / carelink-python-client

Experimental Medtronic CareLink Client in Python
GNU Affero General Public License v3.0
39 stars 21 forks source link

Add 'time' module to fix NameError #9

Closed Yirade closed 1 year ago

Yirade commented 1 year ago

In this commit, the 'time' module was added at the beginning of the script to resolve a NameError that occurred in the 'CareLinkClient' class. The NameError was raised because the code attempted to access 'time.time()' in the '__getLast24Hours' method without importing the 'time' module first. By adding the 'import time' statement, the 'time' module is now available for use, and the error is resolved. The script can now properly access the 'time' module to perform the required time-related operations without any issues.

ondrej1024 commented 1 year ago

Thanks for spotting and fixing this bug.

Yirade commented 1 year ago

No prob