mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-16 03:55:28 +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]
|
worm_weak: List[str]
|
||||||
fury: RogueLocustRecordDetailFury
|
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):
|
class RogueLocustRecords(APIModel):
|
||||||
"""Rogue Locust records"""
|
"""Rogue Locust records"""
|
||||||
|
Loading…
Reference in New Issue
Block a user