mirror of
https://github.com/Sea-Haven-Industries/front-integrations.git
synced 2026-10-07 16:19:08 +00:00
Compare commits
3 commits
8836e49435
...
3acd2709cb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3acd2709cb | ||
|
|
61c358e3d9 | ||
|
|
71c63b7434 |
4 changed files with 6 additions and 6 deletions
|
|
@ -2,7 +2,7 @@ import json
|
|||
import logging
|
||||
import os
|
||||
import time
|
||||
from datetime import datetime, timedelta, timezone
|
||||
from datetime import date, datetime, timedelta, timezone
|
||||
from urllib import error, parse, request
|
||||
from zoneinfo import ZoneInfo
|
||||
|
||||
|
|
@ -366,7 +366,7 @@ def handler(event, context):
|
|||
now_et = now.astimezone(EASTERN)
|
||||
|
||||
if start_date:
|
||||
start = datetime.strptime(start_date, "%Y-%m-%d").date()
|
||||
start = date.fromisoformat(start_date)
|
||||
if now_et.date() < start:
|
||||
logger.info("Before start date %s, skipping", start_date)
|
||||
return {"skipped": True, "reason": "before_start_date"}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
boto3==1.43.53
|
||||
boto3==1.43.57
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ def handler(event, context):
|
|||
logger.info("Skipped %s - not a Front teammate", email)
|
||||
summary["not_in_front"] += 1
|
||||
|
||||
except Exception as e:
|
||||
except Exception as e: # noqa: BLE001 - per-user isolation: one failed update must not abort the sync
|
||||
logger.error("Error updating %s: %s", email, e)
|
||||
summary["errors"] += 1
|
||||
summary["error_details"].append({"email": email, "message": str(e)})
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
boto3==1.43.53
|
||||
google-auth==2.56.1
|
||||
boto3==1.43.57
|
||||
google-auth==2.56.2
|
||||
google-api-python-client==2.198.0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue