Spaces:
Sleeping
Sleeping
Fix indentation error - move get_enrichment_manager to root level
Browse files
app.py
CHANGED
|
@@ -34,10 +34,9 @@ def save_user_data(username: str, data_type: str, data: Any):
|
|
| 34 |
with open(data_file, 'w') as f:
|
| 35 |
json.dump(data, f, indent=2)
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
# --- Consent/Event Audit Panel ---
|
| 42 |
def consent_audit_panel(consent_events: List[Dict[str, Any]], profile: Optional[gr.OAuthProfile]) -> str:
|
| 43 |
"""
|
|
|
|
| 34 |
with open(data_file, 'w') as f:
|
| 35 |
json.dump(data, f, indent=2)
|
| 36 |
|
| 37 |
+
def get_enrichment_manager(username: str) -> DataEnrichmentManager:
|
| 38 |
+
"""Get or create DataEnrichmentManager for a user"""
|
| 39 |
+
return DataEnrichmentManager(username)
|
|
|
|
| 40 |
# --- Consent/Event Audit Panel ---
|
| 41 |
def consent_audit_panel(consent_events: List[Dict[str, Any]], profile: Optional[gr.OAuthProfile]) -> str:
|
| 42 |
"""
|