itam-assistant 0.1.5__py3-none-any.whl → 0.1.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
itam_assistant/do_ai.py CHANGED
@@ -20,10 +20,7 @@ def do_ai_auto(Testk_data, clientinfo):
20
20
  """
21
21
  startAt = 0
22
22
  try:
23
- # 获取租户访问令牌
24
- tenant_access_token = AilyLarkClient(clientinfo).get_tenant_access_token()
25
- if not tenant_access_token:
26
- raise ValueError("未能获取到有效的租户访问令牌")
23
+
27
24
  # 判断Testsuitelink中是否包含https://
28
25
  if "https://" in Testk_data:
29
26
 
@@ -48,6 +45,10 @@ def do_ai_auto(Testk_data, clientinfo):
48
45
  test = json.loads(test)
49
46
  userinput = test['data']['value_ranges'][0]['values']
50
47
  print(f"表头为{userinput[0]}")
48
+ # 获取租户访问令牌
49
+ tenant_access_token = AilyLarkClient(clientinfo).get_tenant_access_token()
50
+ if not tenant_access_token:
51
+ raise ValueError("未能获取到有效的租户访问令牌")
51
52
  for i in range(1, row_count):
52
53
  if userinput[i][0]:
53
54
  if startAt == 0:
@@ -76,6 +77,10 @@ def do_ai_auto(Testk_data, clientinfo):
76
77
  elif Testk_data[0].get('ext'):
77
78
  num = 0
78
79
  for i in Testk_data:
80
+ # 获取租户访问令牌
81
+ tenant_access_token = AilyLarkClient(clientinfo).get_tenant_access_token()
82
+ if not tenant_access_token:
83
+ raise ValueError("未能获取到有效的租户访问令牌")
79
84
  aa = i['ext']['input']
80
85
  if startAt == 0:
81
86
  startAt = int(time.time())
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: itam-assistant
3
- Version: 0.1.5
4
- Summary: 优化版本
3
+ Version: 0.1.6
4
+ Summary: 优化版本--查询的数据列表
5
5
  Home-page: https://github.com/liujunmeiD/itam_assistant
6
6
  Author: liujunmeiD
7
7
  Author-email: 1105030421@qq.com
@@ -10,7 +10,7 @@ it_assistant/test.py,sha256=qGSihMYmtZkz_vifwEOz579f_wPBJAx5_rz1sABUyo4,581
10
10
  itam_assistant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  itam_assistant/ailyapp_client.py,sha256=w-ihtcmRgOQCgWK0jB8eHGCikjo1tbre3xCiEKhLrUA,6357
12
12
  itam_assistant/config.py,sha256=L_5grm2ZWwg_S1JTOU6XLhQ5GPeYJaBFBLwzP2JA5Ys,5498
13
- itam_assistant/do_ai.py,sha256=sbSg5zouQ__1Aw7JsdvrB1bg2HYLgszv4Gq8ouYilAk,41499
13
+ itam_assistant/do_ai.py,sha256=_DLst59HoHjcQi2KJM1vPHqvXLcIAQDcMqF9KRywM_c,41809
14
14
  itam_assistant/intent_detail.py,sha256=hmEj1KpcuKNvsoBZmn5PnbsBIIx6XGmQBJWdW_ICFmg,16831
15
15
  itam_assistant/lark_client.py,sha256=ZVDsdt7ucQvJN1-khC3TR-0IMeYaQXfdWF5DxRrkBH4,6665
16
16
  itam_assistant/logger.py,sha256=W3-tbQ4J-QKSrQSpaNBruzoyMuWYrUkrIY0uBZ1o-lw,1583
@@ -22,7 +22,7 @@ main/do_ai.py,sha256=nDn0dGf_EYBnlVE4OHIMqRDnvWnnH0otWS6FxJ4lg-o,6876
22
22
  main/intent_detail.py,sha256=Fo76c4BpGya-znCnKH7YAcr_2UJtbi3WPQN-PwtVsXc,18533
23
23
  main/lark_client.py,sha256=ZVDsdt7ucQvJN1-khC3TR-0IMeYaQXfdWF5DxRrkBH4,6665
24
24
  main/logger.py,sha256=W3-tbQ4J-QKSrQSpaNBruzoyMuWYrUkrIY0uBZ1o-lw,1583
25
- itam_assistant-0.1.5.dist-info/METADATA,sha256=kW1DI9yJqGCS-fG5J9tLGzg2bcjf7pSAFhwpEub45j0,527
26
- itam_assistant-0.1.5.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
27
- itam_assistant-0.1.5.dist-info/top_level.txt,sha256=KpZA4H04XBVAB3NLq0AAEOrAGEurwMnWw41AhJVqVFI,15
28
- itam_assistant-0.1.5.dist-info/RECORD,,
25
+ itam_assistant-0.1.6.dist-info/METADATA,sha256=jZXpYmt5RzVchDMhGq2ql2gt3Q_aplhDp78UJIoMwx8,550
26
+ itam_assistant-0.1.6.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
27
+ itam_assistant-0.1.6.dist-info/top_level.txt,sha256=KpZA4H04XBVAB3NLq0AAEOrAGEurwMnWw41AhJVqVFI,15
28
+ itam_assistant-0.1.6.dist-info/RECORD,,