isrpa 1.0.6__py3-none-any.whl → 1.0.7__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.
isrpa/utils.py CHANGED
@@ -93,9 +93,17 @@ def get_active_url(user_name):
93
93
  return "failure"
94
94
  return response.json()
95
95
 
96
- data = get_json()
97
- if data:
98
- return data[0].get("url")
96
+ pages = get_json()
97
+ if pages:
98
+ for page in pages:
99
+ if (
100
+ page.get("url").startswith("chrome-extension://") or
101
+ page.get("url").startswith("chrome-untrusted://") or
102
+ page.get("title") == "MagicalAutomator-sidePanel"
103
+ ):
104
+ continue
105
+ else:
106
+ return page.get("url")
99
107
  return None
100
108
 
101
109
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: isrpa
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: isrpa package
5
5
  Home-page: https://github.com/yourusername/mypackage
6
6
  Author: ysq
@@ -5,8 +5,8 @@ isrpa/__init__.py,sha256=pG-YPVG0gJIJ6s4xcAz9S_CnUxpUcz33wl9eNUSgxGk,20
5
5
  isrpa/credentials.py,sha256=5paT4rxtZIUPqADmi1bLkoSKEYoosgS7rIjrJsgMNIs,3350
6
6
  isrpa/llm_chat.py,sha256=jTuK9wcm3X36V9lXuGuTCdNup_zi2NeG2GuYHzO7gm4,1541
7
7
  isrpa/message.py,sha256=N0s6hMaC5S-Pi4EhwcSp-ngfBTBQyW6ymU9sI9dUSeE,11329
8
- isrpa/utils.py,sha256=KjZbsSnypJT5OhfBPPogUef7Q831g2cAYFyD5BmWDKs,5079
9
- isrpa-1.0.6.dist-info/METADATA,sha256=kuCJISHQM1RTf3MIOl-RV7oyq2cDtvj0YHbGlQTqi5o,511
10
- isrpa-1.0.6.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
11
- isrpa-1.0.6.dist-info/top_level.txt,sha256=J5HJbtR2WAeKnW1rrpkiuapwnlswv3RgM-riyZD87o0,6
12
- isrpa-1.0.6.dist-info/RECORD,,
8
+ isrpa/utils.py,sha256=E4iTPy8frpxiSMASbIel8R_rgOY0JH-sQu5PwqUfonM,5412
9
+ isrpa-1.0.7.dist-info/METADATA,sha256=a4fQciGd3TKkA7l6OlWpq7m4I8HX_Y-f5uGDfxpcd9s,511
10
+ isrpa-1.0.7.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
11
+ isrpa-1.0.7.dist-info/top_level.txt,sha256=J5HJbtR2WAeKnW1rrpkiuapwnlswv3RgM-riyZD87o0,6
12
+ isrpa-1.0.7.dist-info/RECORD,,
File without changes