mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-21 21:58:05 +00:00
✨ Add time_str to starrail rogue locust record
This commit is contained in:
parent
4f9e7e7db1
commit
95a31370d9
@ -149,6 +149,14 @@ class RogueLocustRecordDetail(APIModel):
|
||||
worm_weak: List[str]
|
||||
fury: RogueLocustRecordDetailFury
|
||||
|
||||
@property
|
||||
def time_str(self) -> str:
|
||||
"""Get the time as a string."""
|
||||
if self.finish_time is None:
|
||||
return "N/A"
|
||||
|
||||
return self.finish_time.datetime.strftime("%Y.%m.%d %H:%M")
|
||||
|
||||
|
||||
class RogueLocustRecords(APIModel):
|
||||
"""Rogue Locust records"""
|
||||
|
Loading…
Reference in New Issue
Block a user