ucalyptus commited on
Commit
05062ac
·
verified ·
1 Parent(s): ae06403

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 %H:%M'),
 
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