mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Fix bugs?
This commit is contained in:
parent
32019a15ae
commit
6053b2ef5a
2 changed files with 15 additions and 14 deletions
|
@ -29,8 +29,10 @@ class ApiFiorygiGetStar(ApiStar):
|
||||||
transactions: JSON = sorted(fiorygi.transactions, key=lambda t: -t.id)
|
transactions: JSON = sorted(fiorygi.transactions, key=lambda t: -t.id)
|
||||||
return {
|
return {
|
||||||
"fiorygi": fiorygi.fiorygi,
|
"fiorygi": fiorygi.fiorygi,
|
||||||
"transactions": list(map(lambda t: {"id": t.id,
|
"transactions": list(map(lambda t: {
|
||||||
|
"id": t.id,
|
||||||
"change": t.change,
|
"change": t.change,
|
||||||
"reason": t.reason,
|
"reason": t.reason,
|
||||||
"timestamp": t.timestamp.isoformat()}, transactions))
|
"timestamp": t.timestamp.isoformat() if t.timestamp else None
|
||||||
|
}, transactions))
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,6 @@ class RoyalPool(Playable):
|
||||||
else:
|
else:
|
||||||
self.remaining_pool = self.full_pool.copy()
|
self.remaining_pool = self.full_pool.copy()
|
||||||
random.shuffle(self.remaining_pool)
|
random.shuffle(self.remaining_pool)
|
||||||
else:
|
|
||||||
log.debug(f"Dequeuing an item...")
|
log.debug(f"Dequeuing an item...")
|
||||||
# Get the first YtdlDiscord of the queue
|
# Get the first YtdlDiscord of the queue
|
||||||
self.now_playing: YtdlDiscord = self.remaining_pool.pop(0)
|
self.now_playing: YtdlDiscord = self.remaining_pool.pop(0)
|
||||||
|
|
Loading…
Reference in a new issue