Spaces:
Sleeping
Sleeping
koenverhagen
commited on
Commit
•
c11ff11
1
Parent(s):
5c4e317
Update createlookalike.py
Browse files- createlookalike.py +2 -3
createlookalike.py
CHANGED
@@ -78,9 +78,8 @@ async def create_feature_files(shop: Shop):
|
|
78 |
|
79 |
|
80 |
async def calculate_shop(shop: Shop, feat_extractor) -> None:
|
81 |
-
start = datetime.today()
|
82 |
if shop.id: # temp
|
83 |
-
print(shop.id, shop.base_url)
|
84 |
google_xml_feed_url = '{}/google_xml_feed'.format(shop.base_url)
|
85 |
try:
|
86 |
list_ids, shop_url = get_ids_from_feed(google_xml_feed_url)
|
@@ -159,7 +158,7 @@ async def calculate_shop(shop: Shop, feat_extractor) -> None:
|
|
159 |
except Exception as e:
|
160 |
print("could not create json with look-a-like for shop:", shop.id, e)
|
161 |
|
162 |
-
|
163 |
|
164 |
# return {'shop_id': shop.id, 'start_time': start, 'end_time': end, 'designs': design_json}
|
165 |
|
|
|
78 |
|
79 |
|
80 |
async def calculate_shop(shop: Shop, feat_extractor) -> None:
|
|
|
81 |
if shop.id: # temp
|
82 |
+
print(shop.id, shop.base_url, datetime.now())
|
83 |
google_xml_feed_url = '{}/google_xml_feed'.format(shop.base_url)
|
84 |
try:
|
85 |
list_ids, shop_url = get_ids_from_feed(google_xml_feed_url)
|
|
|
158 |
except Exception as e:
|
159 |
print("could not create json with look-a-like for shop:", shop.id, e)
|
160 |
|
161 |
+
print(f"calculation for {shop.id} ended at {datetime.now()}")
|
162 |
|
163 |
# return {'shop_id': shop.id, 'start_time': start, 'end_time': end, 'designs': design_json}
|
164 |
|