diff --git a/API_Reference/API_Reference.py b/API_Reference/API_Reference.py index 71b55e3..128f2e8 100644 --- a/API_Reference/API_Reference.py +++ b/API_Reference/API_Reference.py @@ -1,4 +1,4 @@ -# API Reference shows all functions in Guan package. The current version is guan-0.1.6 updated on December 23, 2023. +# API Reference shows all functions in Guan package. The current version is guan-0.1.7 updated on November 01, 2023. import guan diff --git a/Source_Code/PyPI/setup.cfg b/Source_Code/PyPI/setup.cfg index 6baae50..730bb56 100644 --- a/Source_Code/PyPI/setup.cfg +++ b/Source_Code/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.1.6 +version = 0.1.7 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/Source_Code/PyPI/src/guan.egg-info/PKG-INFO b/Source_Code/PyPI/src/guan.egg-info/PKG-INFO index 1f05eed..ca67720 100644 --- a/Source_Code/PyPI/src/guan.egg-info/PKG-INFO +++ b/Source_Code/PyPI/src/guan.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: guan -Version: 0.1.6 +Version: 0.1.7 Summary: An open source python package Home-page: https://py.guanjihuan.com Author: guanjihuan diff --git a/Source_Code/PyPI/src/guan/__init__.py b/Source_Code/PyPI/src/guan/__init__.py index 5aa4685..980f950 100644 --- a/Source_Code/PyPI/src/guan/__init__.py +++ b/Source_Code/PyPI/src/guan/__init__.py @@ -1,6 +1,6 @@ # Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about (Ji-Huan Guan, 关济寰). The primary location of this package is on website https://py.guanjihuan.com. GitHub link: https://github.com/guanjihuan/py.guanjihuan.com. -# The current version is guan-0.1.6, updated on December 23, 2023. +# The current version is guan-0.1.7, updated on November 01, 2023. # Installation: pip install --upgrade guan @@ -4896,14 +4896,16 @@ def statistics_of_guan_package(): try: import socket import guan - datetime_date = guan.get_date() - datetime_time = guan.get_time() - client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - client_socket.settimeout(0.5) - client_socket.connect(('py.guanjihuan.com', 12345)) - message = guan.get_calling_function_name(layer=2)+"\n" - send_message = datetime_date + ' ' + datetime_time + ' version_0.1.6 ' + message - client_socket.send(send_message.encode()) - client_socket.close() + message_calling = guan.get_calling_function_name(layer=3) + if message_calling == '': + datetime_date = guan.get_date() + datetime_time = guan.get_time() + client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + client_socket.settimeout(0.5) + client_socket.connect(('py.guanjihuan.com', 12345)) + message = guan.get_calling_function_name(layer=2)+"\n" + send_message = datetime_date + ' ' + datetime_time + ' version_0.1.7 guan.' + message + client_socket.send(send_message.encode()) + client_socket.close() except: pass \ No newline at end of file