Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ Eine kreative {channel}-Kampagne für {product}, z. B. mit exklusiven Angebote
|
|
| 33 |
|
| 34 |
def add_campaign(name, goal, product, channel, start, end, budget, responsible):
|
| 35 |
if not isinstance(start, datetime) or not isinstance(end, datetime):
|
| 36 |
-
|
| 37 |
campaigns.append({
|
| 38 |
"Name": name,
|
| 39 |
"Ziel": goal,
|
|
|
|
| 33 |
|
| 34 |
def add_campaign(name, goal, product, channel, start, end, budget, responsible):
|
| 35 |
if not isinstance(start, datetime) or not isinstance(end, datetime):
|
| 36 |
+
return pd.DataFrame(campaigns), "❌ Ungültiges Datum."
|
| 37 |
campaigns.append({
|
| 38 |
"Name": name,
|
| 39 |
"Ziel": goal,
|