File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,9 +157,15 @@ async def get_xposed_breaches(
157157 if breach_date :
158158 breach_date = breach_date .replace (microsecond = 0 ).isoformat ()
159159
160+ # Format added date (timestamp)
161+ added_date = entity .get ("timestamp" )
162+ if added_date :
163+ added_date = added_date .replace (microsecond = 0 ).isoformat ()
164+
160165 breach_detail = BreachDetailResponse (
161166 breachID = entity .key .name or str (entity .key .id ),
162167 breachedDate = breach_date ,
168+ addedDate = added_date ,
163169 domain = entity .get ("domain" , "" ),
164170 industry = entity .get ("industry" , "" ),
165171 logo = entity .get ("logo" , "" ),
Original file line number Diff line number Diff line change @@ -202,6 +202,7 @@ class BreachDetailResponse(BaseModel):
202202
203203 breachID : str
204204 breachedDate : str
205+ addedDate : Optional [str ] = None
205206 domain : str
206207 industry : str
207208 logo : str
You can’t perform that action at this time.
0 commit comments