@duanz/pi-d-reach 1.0.0 → 1.0.1
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.
- package/package.json +1 -1
- package/plugin/scripts/quota.py +5 -0
- package/scripts/quota.py +5 -0
package/package.json
CHANGED
package/plugin/scripts/quota.py
CHANGED
|
@@ -222,6 +222,11 @@ def _budget(d):
|
|
|
222
222
|
if st == "ok" and name == "firecrawl":
|
|
223
223
|
out += (f"\n {name}: 剩余 {v.get('remaining')}/{v.get('total')} credits"
|
|
224
224
|
f",账期至 {str(v.get('period_end'))[:10]}")
|
|
225
|
+
elif st == "ok" and name == "brightdata":
|
|
226
|
+
_note = v.get("unit_note") or ""
|
|
227
|
+
out += (f"\n {name}: 剩余 {v.get('remaining')}/{v.get('total')} credits"
|
|
228
|
+
f",账期至 {str(v.get('period_end'))[:10]}"
|
|
229
|
+
+ (f"({_note.split(';')[0]})" if _note else ""))
|
|
225
230
|
elif st == "ok" and name == "tinyfish":
|
|
226
231
|
out += f"\n {name}: 钱包 {v.get('balance')} {v.get('currency')}"
|
|
227
232
|
elif st == "ok":
|
package/scripts/quota.py
CHANGED
|
@@ -222,6 +222,11 @@ def _budget(d):
|
|
|
222
222
|
if st == "ok" and name == "firecrawl":
|
|
223
223
|
out += (f"\n {name}: 剩余 {v.get('remaining')}/{v.get('total')} credits"
|
|
224
224
|
f",账期至 {str(v.get('period_end'))[:10]}")
|
|
225
|
+
elif st == "ok" and name == "brightdata":
|
|
226
|
+
_note = v.get("unit_note") or ""
|
|
227
|
+
out += (f"\n {name}: 剩余 {v.get('remaining')}/{v.get('total')} credits"
|
|
228
|
+
f",账期至 {str(v.get('period_end'))[:10]}"
|
|
229
|
+
+ (f"({_note.split(';')[0]})" if _note else ""))
|
|
225
230
|
elif st == "ok" and name == "tinyfish":
|
|
226
231
|
out += f"\n {name}: 钱包 {v.get('balance')} {v.get('currency')}"
|
|
227
232
|
elif st == "ok":
|