Update app.py
Browse files
app.py
CHANGED
@@ -144,10 +144,10 @@ def format_crime_report(crimes: List[CrimeData]) -> pd.DataFrame:
|
|
144 |
data = []
|
145 |
for crime in crimes:
|
146 |
data.append({
|
147 |
-
'Date': crime.date_time.strftime('%Y-%m-%d
|
|
|
148 |
'Type': crime.incident_type,
|
149 |
'Location': crime.address,
|
150 |
-
'Details': crime.narrative
|
151 |
})
|
152 |
return pd.DataFrame(data)
|
153 |
|
|
|
144 |
data = []
|
145 |
for crime in crimes:
|
146 |
data.append({
|
147 |
+
'Date': crime.date_time.strftime('%Y-%m-%d'),
|
148 |
+
'Time': crime.date_time.strftime('%H:%M'),
|
149 |
'Type': crime.incident_type,
|
150 |
'Location': crime.address,
|
|
|
151 |
})
|
152 |
return pd.DataFrame(data)
|
153 |
|