|
|
@@ -11,7 +11,6 @@ Usage:
|
|
|
room-cal fetch-prices 2026-07-01 2026-07-31 [--service airbnb]
|
|
|
room-cal push-prices 2026-07-01 2026-07-31
|
|
|
room-cal apply-discounts 2026-07-01 2026-07-31
|
|
|
- room-cal push-busy 2026-07-01 2026-07-31
|
|
|
room-cal local-sync 2026-07-01 2026-07-31
|
|
|
room-cal local-refresh 2026-07-01 2026-07-31
|
|
|
room-cal diff 2026-07-01 2026-07-31
|
|
|
@@ -115,14 +114,6 @@ async def _apply_discounts(start: date, end: date, args) -> None:
|
|
|
print(f" {len(results)} date(s) updated")
|
|
|
|
|
|
|
|
|
-async def _push_busy(start: date, end: date, args) -> None:
|
|
|
- from room_cal.actions.push_busy import push_busy
|
|
|
- result = await push_busy(start, end)
|
|
|
- for d in result.data['busy']:
|
|
|
- print(f" busy: {d}")
|
|
|
- print(f" {len(result.data['busy'])} date(s) busy" + (" (changed)" if result.changed else ""))
|
|
|
-
|
|
|
-
|
|
|
async def _local_sync(start: date, end: date, args) -> None:
|
|
|
from room_cal.actions.local_sync import local_sync
|
|
|
await local_sync(start, end)
|
|
|
@@ -348,8 +339,7 @@ _ACTIONS: dict[str, tuple] = {
|
|
|
'fetch-prices': (_fetch_prices, 'Fetch service API list prices and write net prices to CalDAV'),
|
|
|
'push-prices': (_push_prices, 'Read local CalDAV price events and push list prices to all services'),
|
|
|
'apply-discounts': (_apply_discounts, 'Re-apply discount events to price calendar and push changed list prices'),
|
|
|
- 'push-busy': (_push_busy, 'Sync Busy export calendar from local closed and reservation events'),
|
|
|
- 'local-sync': (_local_sync, 'Fetch all iCal feeds, apply rules, fill prices, and sync Busy — no service API calls'),
|
|
|
+ 'local-sync': (_local_sync, 'Fetch all iCal feeds, apply rules, and fill prices — no service API calls'),
|
|
|
'local-refresh': (_local_refresh, 'Re-write all local Room calendar events (prices, closed, discounts, reservations)'),
|
|
|
'remote-sync': (_remote_sync, 'Integrity-check and repair service-side data (e.g. Booking.com rooms_to_sell drift)'),
|
|
|
'diff': (_diff, 'Compare local CalDAV data to live service APIs and report all differences (read-only)'),
|