imporerror
This commit is contained in:
1 parent
7ca181bdd6
commit
2f7769e2c3
1 file changed
+5
-6
+5
-6
@@ -6,13 +6,10 @@ Queries Square catalog to collect metrics about LEGO inventory quality.
|
|||||||
import json
|
import json
|
||||||
from typing import Dict, Any
|
from typing import Dict, Any
|
||||||
from square import AsyncSquare
|
from square import AsyncSquare
|
||||||
import get_sq_env
|
from . import get_sq_env
|
||||||
|
|
||||||
# Initialize Square client
|
# Initialize Square client
|
||||||
client = AsyncSquare(
|
client = AsyncSquare(token=get_sq_env.SQUARE_TOKEN, environment=get_sq_env.environment)
|
||||||
token=get_sq_env.SQUARE_TOKEN,
|
|
||||||
environment=get_sq_env.environment
|
|
||||||
)
|
|
||||||
|
|
||||||
LEGO_CAT_ID = get_sq_env.LEGO_CAT_ID
|
LEGO_CAT_ID = get_sq_env.LEGO_CAT_ID
|
||||||
|
|
||||||
@@ -293,6 +290,8 @@ if __name__ == "__main__":
|
|||||||
print(f"Missing UPCs: {stats['missing_upcs']}")
|
print(f"Missing UPCs: {stats['missing_upcs']}")
|
||||||
print(f"Missing Images: {stats['missing_images']}")
|
print(f"Missing Images: {stats['missing_images']}")
|
||||||
print(f"Total Catalog Value: ${stats['total_catalog_value']:,.2f}")
|
print(f"Total Catalog Value: ${stats['total_catalog_value']:,.2f}")
|
||||||
print(f"Completion Rate: {(stats['enriched_items'] / stats['total_items'] * 100):.1f}%")
|
print(
|
||||||
|
f"Completion Rate: {(stats['enriched_items'] / stats['total_items'] * 100):.1f}%"
|
||||||
|
)
|
||||||
|
|
||||||
asyncio.run(main())
|
asyncio.run(main())
|
||||||
Reference in new issue
Block a user