Update app.py
Browse files
app.py
CHANGED
|
@@ -58,8 +58,9 @@ def get_current_month_bookings():
|
|
| 58 |
now = datetime.now()
|
| 59 |
start_time = now.replace(day=1, hour=0, minute=0, second=0, microsecond=0)
|
| 60 |
end_time = (start_time + timedelta(days=32)).replace(day=1) - timedelta(seconds=1)
|
| 61 |
-
url = f"https://app.booklux.com/api/v1/bookings?api_key={api_key}
|
| 62 |
-
|
|
|
|
| 63 |
response = requests.get(url)
|
| 64 |
if response.status_code == 200:
|
| 65 |
return response.json()['data']
|
|
|
|
| 58 |
now = datetime.now()
|
| 59 |
start_time = now.replace(day=1, hour=0, minute=0, second=0, microsecond=0)
|
| 60 |
end_time = (start_time + timedelta(days=32)).replace(day=1) - timedelta(seconds=1)
|
| 61 |
+
url = f"https://app.booklux.com/api/v1/bookings?api_key={api_key}"
|
| 62 |
+
#url = f"https://app.booklux.com/api/v1/bookings?api_key={api_key}&startTime={start_time}&endTime={end_time}"
|
| 63 |
+
|
| 64 |
response = requests.get(url)
|
| 65 |
if response.status_code == 200:
|
| 66 |
return response.json()['data']
|